mirror of
https://github.com/letic/terraform-provider-proxmox.git
synced 2024-07-06 09:32:38 +00:00
The remote API was changed, adapt code
This commit is contained in:
parent
282df594c6
commit
6325f283c0
|
@ -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