diff options
author | Joseph Anthony Pasquale Holsten <joseph@josephholsten.com> | 2014-02-21 15:57:41 +0000 |
---|---|---|
committer | Joseph Anthony Pasquale Holsten <joseph@josephholsten.com> | 2014-02-25 19:04:07 +0000 |
commit | deb10bb0b586dd0bc842893c42831caf6ddff273 (patch) | |
tree | 3ce21827b0f6f2bcef56deadd48569c9574b9202 /lib/chef/rest.rb | |
parent | a4c7d9154afcdb760ff867cbb98118e5cf4089cd (diff) | |
download | chef-deb10bb0b586dd0bc842893c42831caf6ddff273.tar.gz |
ensure Chef::REST does not modify options in-place
Diffstat (limited to 'lib/chef/rest.rb')
-rw-r--r-- | lib/chef/rest.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/rest.rb b/lib/chef/rest.rb index 73ca4b3293..bfc07ebd62 100644 --- a/lib/chef/rest.rb +++ b/lib/chef/rest.rb @@ -57,6 +57,7 @@ class Chef # http://localhost:4000, a call to +get_rest+ with 'nodes' will make an # HTTP GET request to http://localhost:4000/nodes def initialize(url, client_name=Chef::Config[:node_name], signing_key_filename=Chef::Config[:client_key], options={}) + options = options.dup options[:client_name] = client_name options[:signing_key_filename] = signing_key_filename super(url, options) |