diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-19 13:27:40 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-23 10:44:58 -0800 |
commit | 5c6ef532630f3d08325fd0e1635d2b6dd6057a31 (patch) | |
tree | 34ebb62d6533770df52378917a7a3f30b2f27c79 /lib/chef/mixin | |
parent | 2603e2153d6ab50179d2278025a51579edb9033f (diff) | |
download | chef-5c6ef532630f3d08325fd0e1635d2b6dd6057a31.tar.gz |
fix Lint/UnderscorePrefixedVariableName
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r-- | lib/chef/mixin/shell_out.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef/mixin/shell_out.rb b/lib/chef/mixin/shell_out.rb index d3c14fa408..529023056d 100644 --- a/lib/chef/mixin/shell_out.rb +++ b/lib/chef/mixin/shell_out.rb @@ -76,17 +76,17 @@ class Chef def run_command_compatible_options(command_args) return command_args unless command_args.last.is_a?(Hash) - _command_args = command_args.dup - _options = _command_args.last + my_command_args = command_args.dup + my_options = my_command_args.last DEPRECATED_OPTIONS.each do |old_option, new_option| # Edge case: someone specifies :command_log_level and 'command_log_level' in the option hash - next unless value = _options.delete(old_option) || _options.delete(old_option.to_s) + next unless value = my_options.delete(old_option) || my_options.delete(old_option.to_s) deprecate_option old_option, new_option - _options[new_option] = value + my_options[new_option] = value end - return _command_args + return my_command_args end private |