Skip to content

Commit

Permalink
The remote API was changed, adapt code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron Arts committed Apr 5, 2018
1 parent 282df59 commit 6325f28
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions proxmox/preprovision.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,8 @@ func runCommand(
return fmt.Errorf("Error executing command %q: %v", cmd.Command, err)
}

cmd.Wait()
if cmd.ExitStatus != 0 {
err = fmt.Errorf(
"Command %q exited with non-zero exit status: %d", cmd.Command, cmd.ExitStatus)
if err := cmd.Wait(); err != nil {
return err
}

// Wait for output to clean up
Expand Down

0 comments on commit 6325f28

Please sign in to comment.