diff options
author | Tor Magnus Rakvåg <tm@intility.no> | 2018-02-08 12:08:59 +0100 |
---|---|---|
committer | Tor Magnus Rakvåg <tm@intility.no> | 2018-02-08 12:08:59 +0100 |
commit | 10f53dd18f17bbef5015db1372002c2c0bd3d253 (patch) | |
tree | 4979205f6c773ebdec4a2e5432ba5e5e4dfb1c7c /lib/chef/provider/package/powershell.rb | |
parent | 16a267cb132e0d7d5bed1bf44f0b72ba514b64d3 (diff) | |
download | chef-10f53dd18f17bbef5015db1372002c2c0bd3d253.tar.gz |
remove excess whitespace
Signed-off-by: Tor Magnus Rakvåg <tm@intility.no>
Diffstat (limited to 'lib/chef/provider/package/powershell.rb')
-rw-r--r-- | lib/chef/provider/package/powershell.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/package/powershell.rb b/lib/chef/provider/package/powershell.rb index f8a7ab69f4..9111869c2b 100644 --- a/lib/chef/provider/package/powershell.rb +++ b/lib/chef/provider/package/powershell.rb @@ -61,11 +61,11 @@ class Chef def remove_package(names, versions) names.each_with_index do |name, index| if versions && !versions[index].nil? - powershell_out( "Uninstall-Package '#{name}' -Force -ForceBootstrap -RequiredVersion #{versions[index]}", timeout: new_resource.timeout) + powershell_out("Uninstall-Package '#{name}' -Force -ForceBootstrap -RequiredVersion #{versions[index]}", timeout: new_resource.timeout) else version = "0" until version.empty? - version = powershell_out( "(Uninstall-Package '#{name}' -Force -ForceBootstrap).Version", timeout: new_resource.timeout).stdout.strip + version = powershell_out("(Uninstall-Package '#{name}' -Force -ForceBootstrap).Version", timeout: new_resource.timeout).stdout.strip unless version.empty? Chef::Log.info("Removed package '#{name}' with version #{version}") end |