Skip to content

Commit

Permalink
Merge pull request #19911 from pdostal/wait_for_ssh_password_glitch_1
Browse files Browse the repository at this point in the history
Hotfix publiccloud::instance::wait_for_ssh
  • Loading branch information
asmorodskyi authored Aug 8, 2024
2 parents 3c35ad2 + db768d7 commit b955beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/publiccloud/instance.pm
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ sub wait_for_ssh {
while (($duration = time() - $start_time) < $args{timeout}) {
# timeout recalculated removing consumed time until now
# We don't support password authentication so it would just block the terminal
$sysout = $self->ssh_script_output(cmd => 'sudo systemctl is-system-running', ssh_opts => '-o PasswordAuthentication=no',
$sysout = $self->ssh_script_output(cmd => 'sudo systemctl is-system-running', ssh_opts => '-o PasswordAuthentication=no ' . $self->ssh_opts,
timeout => $args{timeout} - $duration, proceed_on_failure => 1, username => $args{username});
# result check
if ($sysout =~ m/initializing|starting/) { # still starting
Expand Down

0 comments on commit b955beb

Please sign in to comment.