[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 2.6.5rc1-120-g2247c80
Daniel Pittman
daniel at rimspace.net
Mon Feb 7 06:41:42 UTC 2011
The following commit has been merged in the upstream branch:
commit c50a48edb19e80d48019b19d852665411d6222e7
Author: James Turnbull <james at lovedthanlost.net>
Date: Sat Jan 29 04:03:21 2011 +1100
Fixed #6061 - Allowed -1 as password min/max age
This allows setting disabling password aging on Linux and Solaris
Signed-off-by: James Turnbull <james at lovedthanlost.net>
diff --git a/lib/puppet/type/user.rb b/lib/puppet/type/user.rb
index 5de73e3..e7389a0 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
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list