lib/gogetit/util.rb in gogetit-0.13.6 vs lib/gogetit/util.rb in gogetit-0.13.7

- old
+ new

@@ -192,13 +192,18 @@ end def ssh_available?(ip_or_fqdn, user) logger.info("Calling <#{__method__.to_s}> for #{user}@#{ip_or_fqdn}") begin - Net::SSH.start(ip_or_fqdn, user) + Net::SSH.start( + ip_or_fqdn, + user, + :keys_only => true, + :number_of_password_prompts => 0 + ) rescue Exception => e puts e - false + return false end true end def check_ip_available(addresses, maas)