summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2008-11-11 13:43:29 +0100
committerJames Turnbull <james@lovedthanlost.net>2008-11-12 09:19:16 +1100
commitbf5be00f87a8df66964931939531399384142aff (patch)
tree1aa6af4951d2df4a7b60cc8bbbe145de7103c661 /lib
parente032034fc4f5f45d883f24104c436e16ce555c0e (diff)
downloadpuppet-bf5be00f87a8df66964931939531399384142aff.tar.gz
puppet-bf5be00f87a8df66964931939531399384142aff.tar.xz
puppet-bf5be00f87a8df66964931939531399384142aff.zip
Fix #1737 - part2 - Fix display of "options"
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/type/ssh_authorized_key.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/puppet/type/ssh_authorized_key.rb b/lib/puppet/type/ssh_authorized_key.rb
index 4afca1cca..66cf3e733 100644
--- a/lib/puppet/type/ssh_authorized_key.rb
+++ b/lib/puppet/type/ssh_authorized_key.rb
@@ -38,6 +38,22 @@ module Puppet
should be specified as an array."
defaultto do :absent end
+
+ def is_to_s(value)
+ if value == :absent or value.include?(:absent)
+ super
+ else
+ value.join(",")
+ end
+ end
+
+ def should_to_s(value)
+ if value == :absent or value.include?(:absent)
+ super
+ else
+ value.join(",")
+ end
+ end
end
autorequire(:user) do