mirror of
https://github.com/letic/terraform-provider-proxmox.git
synced 2024-07-03 16:12:38 +00:00
Merge pull request #10 from raarts/remote-api-changes
The remote API was changed, adapt code for terraform 0.11.x
This commit is contained in:
commit
bbdcd52696
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user