Skip to content

Commit

Permalink
Set expiration days default value to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurray-r7 committed Jul 8, 2015
1 parent 86cd695 commit d37f584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nexpose/password_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class PasswordPolicy < APIObject
attr_accessor :special_chars
attr_accessor :expiration_days

def initialize(policy_name:, min_length:, max_length:, special_chars:, capitals:, digits:, expiration_days:)
def initialize(policy_name:, min_length:, max_length:, special_chars:, capitals:, digits:, expiration_days: 0)
@policy_name = policy_name.to_s
@min_length = min_length.to_i
@max_length = max_length.to_i
Expand Down

0 comments on commit d37f584

Please sign in to comment.