summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPeter Meier <peter.meier@immerda.ch>2010-08-12 16:48:22 +0200
committerMarkus Roberts <Markus@reality.com>2010-08-21 13:07:26 -0700
commitd1150e0b91626e4f8843f17c413f88efd4a4ba77 (patch)
tree0501fa1ca1fca3ae12298ae9ba3c561788a1c943 /lib
parent20f4b903acd91074778f379631cf7545fdff9eb8 (diff)
downloadpuppet-d1150e0b91626e4f8843f17c413f88efd4a4ba77.tar.gz
puppet-d1150e0b91626e4f8843f17c413f88efd4a4ba77.tar.xz
puppet-d1150e0b91626e4f8843f17c413f88efd4a4ba77.zip
fix #4528 - treat * as absent
Internally the cron type is seeing params containing only '*', as absent. However, if a user was setting a parameter explicitely as '*', we weren't munging it to be absent. Hence, we were setting this param over and over again.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/puppet/type/cron.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/type/cron.rb b/lib/puppet/type/cron.rb
index 9d827df78..c42f0df55 100755
--- a/lib/puppet/type/cron.rb
+++ b/lib/puppet/type/cron.rb
@@ -169,7 +169,7 @@ Puppet::Type.newtype(:cron) do
end
if value == "*"
- return value
+ return :absent
end
return value unless self.class.boundaries