diff options
author | Robert Tarrall <robert@protectwise.com> | 2014-05-01 10:37:39 -0600 |
---|---|---|
committer | Robert Tarrall <robert@protectwise.com> | 2014-05-01 10:37:39 -0600 |
commit | 68930e5dc875156a7cab7a0786cbd13c1543fea4 (patch) | |
tree | fadc506160d6275efca19219eba6607fe8c9887e | |
parent | 561b564d28e12731434513f1783cd519690e144b (diff) | |
download | chef-68930e5dc875156a7cab7a0786cbd13c1543fea4.tar.gz |
Fix upstart provider so parameters work correctly
-rw-r--r-- | lib/chef/provider/service/upstart.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/provider/service/upstart.rb b/lib/chef/provider/service/upstart.rb index 98780e4b72..c81a8a50dc 100644 --- a/lib/chef/provider/service/upstart.rb +++ b/lib/chef/provider/service/upstart.rb @@ -43,7 +43,8 @@ class Chef run_context.node - @job = @new_resource.service_name + # dup so we can mutate @job + @job = @new_resource.service_name.dup if @new_resource.parameters @new_resource.parameters.each do |key, value| |