fix: log a reason for possible ssh failure

This commit is contained in:
Devin Buhl authored and GitHub committed 2022-05-05 17:41:00 -04:00
1 parent 13b8194321
commit e7f9355747
1 file changed
+1 -1
+1 -1
View File
@@ -287,7 +287,7 @@ verify_ansible_hosts() {
if ssh -q -o BatchMode=yes -o ConnectTimeout=5 "${!node_username}"@"${!var}" "true"; then
_log "INFO" "Successfully SSH'ed into host '${!var}' with username '${!node_username}'"
else
_log "ERROR" "Unable to SSH into host '${!var}' with username '${!node_username}'"
_log "ERROR" "Unable to SSH into host '${!var}' with username '${!node_username}', did you copy over your SSH key?"
exit 1
fi
done