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:
Grant Gongaware 2018-04-10 14:47:15 -07:00 committed by GitHub
commit bbdcd52696

View File

@ -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