Skip to content

Commit

Permalink
fix: Don't handle ssh shutdown error
Browse files Browse the repository at this point in the history
Signed-off-by: aerosouund <aerosound161@gmail.com>
  • Loading branch information
aerosouund committed Aug 26, 2024
1 parent 86c176f commit ea8daed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cluster-provision/gocli/providers/base_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,7 @@ func (kp *KubevirtProvider) Provision(ctx context.Context, cancel context.Cancel
}
}

if err = sshClient.Command("sudo shutdown now -h"); err != nil {
return err
}
_ = sshClient.Command("sudo shutdown now -h")

_, err = docker.Exec(kp.Docker, kp.nodeContainer(kp.Version, nodeName), []string{"rm", "/ssh_ready"}, io.Discard)
if err != nil {
Expand Down

0 comments on commit ea8daed

Please sign in to comment.