diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-03-05 14:04:59 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-03-05 14:04:59 -0800 |
commit | 50f820590d0e5b864fd9ace7fc940609ef1c6fcd (patch) | |
tree | 6b59e9c192471e81040f9a9318c827d69e8c86b5 /lib/chef/resource/git.rb | |
parent | 7d9696554ec2a9accb66371f23d86a9601ec45e9 (diff) | |
download | chef-50f820590d0e5b864fd9ace7fc940609ef1c6fcd.tar.gz |
make deploy provider support nil
necessary edits to protect deploy provider and git provider when the
resource parameters are reset to nil.
also clean up the use of @new_resource in the deploy provider.
Diffstat (limited to 'lib/chef/resource/git.rb')
-rw-r--r-- | lib/chef/resource/git.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/git.rb b/lib/chef/resource/git.rb index 7156873315..306efe633d 100644 --- a/lib/chef/resource/git.rb +++ b/lib/chef/resource/git.rb @@ -27,7 +27,7 @@ class Chef def initialize(name, run_context=nil) super @resource_name = :git - @additional_remotes = Hash[] + @additional_remotes = {} end def additional_remotes(arg=nil) |