summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-03-06 18:11:33 -0600
committerJames Turnbull <james@lovedthanlost.net>2009-03-07 11:20:51 +1100
commita3bb201bd4c964ab4f68e00895b692d9d9585407 (patch)
tree3dc414005f9b26a052efabebf738398b9793e265 /lib
parent67fc394d9ffaed89328c00678559f57418a1511d (diff)
downloadpuppet-a3bb201bd4c964ab4f68e00895b692d9d9585407.tar.gz
puppet-a3bb201bd4c964ab4f68e00895b692d9d9585407.tar.xz
puppet-a3bb201bd4c964ab4f68e00895b692d9d9585407.zip
Fixing change printing when list properties are absent
They were throwing an exception when the 'is' value was 'absent'. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/property/list.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/property/list.rb b/lib/puppet/property/list.rb
index 0c933f164..b7db8b42a 100644
--- a/lib/puppet/property/list.rb
+++ b/lib/puppet/property/list.rb
@@ -10,7 +10,11 @@ module Puppet
end
def is_to_s(currentvalue)
- currentvalue.join(delimiter)
+ if currentvalue == :absent
+ return "absent"
+ else
+ return currentvalue.join(delimiter)
+ end
end
def membership