summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-04-25 14:32:35 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-04-25 14:32:35 -0700
commitbc2d5fedc18d56c1b22700a28c07dda960010964 (patch)
treedda8e9cefe224b50e4382719e46bd0de6b4f164f
parentc22752ad04a77111db7301b23e995408a82775eb (diff)
downloadchef-lcg/shell_out_syntax.tar.gz
remove duping the args hashlcg/shell_out_syntax
we only ever did this in order to mutate the options and with the **options syntax we don't need to do this anymore.
-rw-r--r--lib/chef/mixin/shell_out.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/chef/mixin/shell_out.rb b/lib/chef/mixin/shell_out.rb
index be3446d67e..f20e0b61cb 100644
--- a/lib/chef/mixin/shell_out.rb
+++ b/lib/chef/mixin/shell_out.rb
@@ -29,7 +29,6 @@ class Chef
# we use 'en_US.UTF-8' by default because we parse localized strings in English as an API and
# generally must support UTF-8 unicode.
def shell_out(*args, **options)
- args = args.dup
options = options.dup
env_key = options.has_key?(:env) ? :env : :environment
options[env_key] = {