Skip to content

Commit

Permalink
Merge pull request #10 from raarts/remote-api-changes
Browse files Browse the repository at this point in the history
The remote API was changed, adapt code for terraform 0.11.x
  • Loading branch information
ggongaware committed Apr 10, 2018
2 parents 282df59 + 6325f28 commit bbdcd52
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 bbdcd52

Please sign in to comment.