diff options
author | ballman <ballman@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-05-09 12:32:38 +0000 |
---|---|---|
committer | ballman <ballman@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-05-09 12:32:38 +0000 |
commit | a9666065a2ddcb7b0396d6aa16c3fba05a7204c0 (patch) | |
tree | 4b153a4c08bb3a73e85d2d91f97074b67080d10d | |
parent | 8bad07483d2f7f15162ccc93092412ac7a0ac499 (diff) | |
download | puppet-a9666065a2ddcb7b0396d6aa16c3fba05a7204c0.tar.gz puppet-a9666065a2ddcb7b0396d6aa16c3fba05a7204c0.tar.xz puppet-a9666065a2ddcb7b0396d6aa16c3fba05a7204c0.zip |
Removed override of change_to_s since it is the same as the overridden method in EnsureProperty.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2491 980ebf18-57e1-0310-9a29-db15c13687c0
-rwxr-xr-x | lib/puppet/type/user.rb | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/lib/puppet/type/user.rb b/lib/puppet/type/user.rb index 4bbb5b233..b426102aa 100755 --- a/lib/puppet/type/user.rb +++ b/lib/puppet/type/user.rb @@ -43,26 +43,6 @@ module Puppet end end - # FIXARB: Check this... I think it is exactly the same as the Ensure classes. - def change_to_s(currentvalue, newvalue) - begin - if currentvalue == :absent - return "created" - elsif newvalue == :absent - return "removed" - else - return "%s changed '%s' to '%s'" % - [self.name, self.is_to_s(currentvalue), self.should_to_s(newvalue)] - end - rescue Puppet::Error, Puppet::DevError - raise - rescue => detail - raise Puppet::DevError, - "Could not convert change %s to string: %s" % - [self.name, detail] - end - end - def retrieve if provider.exists? return :present @@ -186,8 +166,7 @@ module Puppet group should not be listed. Multiple groups should be specified as an array." - # FIXARB: Whoa... That should method requires is? - def should_to_s(newvalue = @should) + def should_to_s(newvalue) self.should end |