lib/veewee/provider/core/helper/winrm.rb in veewee-0.3.7 vs lib/veewee/provider/core/helper/winrm.rb in veewee-0.3.9
- old
+ new
@@ -32,10 +32,11 @@
@winrm_up = true
end
rescue HTTPClient::ReceiveTimeoutError,HTTPClient::ConnectTimeoutError
@winrm_up = false
end
+ @winrm_up
end
def when_winrm_login_works(ip="127.0.0.1", options = {}, &block)
@@ -60,9 +61,11 @@
env.ui.info ""
sleep 1
@connected = true
return true
rescue Exception => e
+ @winrm_up = false
+ next if e.message =~ /401/ # 2012 gives 401 errors
puts e.inspect
puts e.message
puts e.backtrace.inspect
sleep 5
end