diff options
Diffstat (limited to 'lib/chef/util/powershell/cmdlet.rb')
-rw-r--r-- | lib/chef/util/powershell/cmdlet.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/util/powershell/cmdlet.rb b/lib/chef/util/powershell/cmdlet.rb index 75cf489e9e..21eea7ca2f 100644 --- a/lib/chef/util/powershell/cmdlet.rb +++ b/lib/chef/util/powershell/cmdlet.rb @@ -115,7 +115,7 @@ class Chef end def command_switches_string(switches) - command_switches = switches.map do |switch_name, switch_value| + command_switches = switches.map { |switch_name, switch_value| if switch_name.class != Symbol raise ArgumentError, "Invalid type `#{switch_name} `for PowerShell switch '#{switch_name}'. The switch must be specified as a Symbol'" end @@ -140,7 +140,7 @@ class Chef end switch_present ? ["-#{switch_name.to_s.downcase}", switch_argument].join(" ").strip : "" - end + } command_switches.join(" ") end |