diff options
-rw-r--r-- | lib/chef/provider/cron.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/cron.rb b/lib/chef/provider/cron.rb index 7baaeec0c5..4a9a73cd27 100644 --- a/lib/chef/provider/cron.rb +++ b/lib/chef/provider/cron.rb @@ -199,7 +199,7 @@ class Chef def set_environment_var(attr_name, attr_value) if %w{MAILTO PATH SHELL HOME}.include?(attr_name) - @current_resource.send(attr_name.downcase.to_sym, attr_value) + @current_resource.send(attr_name.downcase.to_sym, attr_value.gsub(/^"|"$/, '')) else @current_resource.environment(@current_resource.environment.merge(attr_name => attr_value)) end |