Skip to content

Commit 2244ec3

Browse files
committed
Merge pull request saltstack#18779 from sjansen/patch-2
Restore salt-cloud ssh_gateway support
2 parents 346dd0b + 29b0825 commit 2244ec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

salt/utils/cloud.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def wait_for_port(host, port=22, timeout=900, gateway=None):
618618
trycount += 1
619619
# test gateway usage
620620
if not usable_gateway:
621-
pstatus = _exec_ssh_cmd(pcmd, **kwargs)
621+
pstatus = _exec_ssh_cmd(pcmd, allow_failure=True, **kwargs)
622622
if pstatus == 0:
623623
usable_gateway = True
624624
else:
@@ -631,7 +631,7 @@ def wait_for_port(host, port=22, timeout=900, gateway=None):
631631
'SSH gateway is reachable but we can not login')
632632
# then try to reach out the target
633633
if usable_gateway:
634-
status = _exec_ssh_cmd(cmd, **kwargs)
634+
status = _exec_ssh_cmd(cmd, allow_failure=True, **kwargs)
635635
# Get the exit code of the SSH command.
636636
# If 0 then the port is open.
637637
if status == 0:

0 commit comments

Comments
 (0)