lib/ridley/host_connector/winrm.rb in ridley-1.0.3 vs lib/ridley/host_connector/winrm.rb in ridley-1.1.0

- old
+ new

@@ -79,14 +79,10 @@ else log.info "Successfully ran WinRM command on: '#{host}' as: '#{user}', but it failed" end end ensure - begin - command_uploaders.map(&:cleanup) - rescue ::WinRM::WinRMHTTPTransportError => ex - log.info "Error cleaning up leftover Powershell scripts on some hosts" - end + command_uploaders.map(&:cleanup) end # Returns the command if it does not break the WinRM command length # limit. Otherwise, we return an execution of the command as a batch file. #