summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-08-02 09:08:18 +0100
committerGitHub <noreply@github.com>2016-08-02 09:08:18 +0100
commitcc26897d0d57527db825f4a035419de22e0a0356 (patch)
tree937fe73a0b9e30a70d71fe3582cb8424d0ee018d /lib/chef
parentbe11f6823f696dbd55fc325687bd13107a647244 (diff)
parente1d2ac813ed55f98b73144daa16083d0ce9f795f (diff)
downloadchef-cc26897d0d57527db825f4a035419de22e0a0356.tar.gz
Merge pull request #5127 from chef/tm/empty_cron_attributes
Support setting an empty string for cron attrs
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/provider/cron.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/cron.rb b/lib/chef/provider/cron.rb
index 36b67ab6a5..c7487cf42f 100644
--- a/lib/chef/provider/cron.rb
+++ b/lib/chef/provider/cron.rb
@@ -237,7 +237,7 @@ class Chef
newcron = ""
newcron << "# Chef Name: #{new_resource.name}\n"
[ :mailto, :path, :shell, :home ].each do |v|
- newcron << "#{v.to_s.upcase}=#{@new_resource.send(v)}\n" if @new_resource.send(v)
+ newcron << "#{v.to_s.upcase}=\"#{@new_resource.send(v)}\"\n" if @new_resource.send(v)
end
@new_resource.environment.each do |name, value|
newcron << "#{name}=#{value}\n"