summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-02-14 11:55:20 -0600
committerLuke Kanies <luke@madstop.com>2009-02-14 12:24:42 -0600
commit682dd8b933c5feeed389b644b75f27e66e863276 (patch)
tree0b389d83a65115a36e676bfe6735c89adeadee32 /lib/puppet
parent44f97aa5815d4a8ab73302bd75b85e045f9944c4 (diff)
downloadpuppet-682dd8b933c5feeed389b644b75f27e66e863276.tar.gz
puppet-682dd8b933c5feeed389b644b75f27e66e863276.tar.xz
puppet-682dd8b933c5feeed389b644b75f27e66e863276.zip
Fixing password validation to support symbols.
My fix for #1920 broke when you set :absent or :present. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
-rwxr-xr-xlib/puppet/type/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/type/user.rb b/lib/puppet/type/user.rb
index 56038869b..6b6ff82ab 100755
--- a/lib/puppet/type/user.rb
+++ b/lib/puppet/type/user.rb
@@ -145,7 +145,7 @@ module Puppet
desc "The user's password, in whatever encrypted format the local machine requires. Be sure to enclose any value that includes a dollar sign ($) in single quotes (\')."
validate do |value|
- raise ArgumentError, "Passwords cannot include ':'" if value.include?(":")
+ raise ArgumentError, "Passwords cannot include ':'" if value.is_a?(String) and value.include?(":")
end
def change_to_s(currentvalue, newvalue)