From a9666065a2ddcb7b0396d6aa16c3fba05a7204c0 Mon Sep 17 00:00:00 2001 From: ballman Date: Wed, 9 May 2007 12:32:38 +0000 Subject: 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 --- lib/puppet/type/user.rb | 23 +---------------------- 1 file changed, 1 insertion(+), 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 -- cgit