lib/chef/knife/winrm.rb in knife-windows-0.8.0.rc.0 vs lib/chef/knife/winrm.rb in knife-windows-0.8.0.rc.1
- old
+ new
@@ -251,11 +251,12 @@
end
def check_for_errors!(exit_codes)
exit_codes.each do |host, value|
+ Chef::Log.debug("Exit code found: #{value}")
unless success_return_codes.include? value.to_i
- @exit_code = 1
+ @exit_code = value.to_i
ui.error "Failed to execute command on #{host} return code #{value}"
end
end
end