diff options
| author | Daniel Pittman <daniel@puppetlabs.com> | 2011-01-28 14:55:17 -0800 |
|---|---|---|
| committer | Daniel Pittman <daniel@rimspace.net> | 2011-01-28 14:55:17 -0800 |
| commit | 95ebc00c4a529c88301b26e1b0c6ecfc3a0cf67f (patch) | |
| tree | e0c704bca7846496c94a457fff8d71982286d43b /lib | |
| parent | 1dc6b42d5dbaf0ca2ad1b1e9dd2a5788bcdb643d (diff) | |
| parent | c50a48edb19e80d48019b19d852665411d6222e7 (diff) | |
| download | puppet-95ebc00c4a529c88301b26e1b0c6ecfc3a0cf67f.tar.gz puppet-95ebc00c4a529c88301b26e1b0c6ecfc3a0cf67f.tar.xz puppet-95ebc00c4a529c88301b26e1b0c6ecfc3a0cf67f.zip | |
Merge branch 'bug/2.6.next/6061-password-max-age' into 2.6.next
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/puppet/type/user.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/type/user.rb b/lib/puppet/type/user.rb index 5de73e3dd..e7389a0d1 100755 --- a/lib/puppet/type/user.rb +++ b/lib/puppet/type/user.rb @@ -175,7 +175,7 @@ module Puppet end validate do |value| - if value.to_s !~ /^\d+$/ + if value.to_s !~ /^-?\d+$/ raise ArgumentError, "Password minimum age must be provided as a number" end end @@ -194,7 +194,7 @@ module Puppet end validate do |value| - if value.to_s !~ /^\d+$/ + if value.to_s !~ /^-?\d+$/ raise ArgumentError, "Password maximum age must be provided as a number" end end |
