Publish output when failing to create deployment

This patch will publish output if Rally fails to create the
deployment for some reason.

Change-Id: Ie5b4db653d7ffc43832abb5b376a0d67612f2665
This commit is contained in:
Mohammed Naser 2020-04-05 21:35:32 -04:00
parent b5c01d934e
commit b0fb284432
1 changed files with 2 additions and 1 deletions

View File

@ -114,8 +114,9 @@ func (runner *PeriodicRunner) createDeployment() {
}
cmd := exec.Command("rally", "deployment", "create", "--filename", file.Name(), "--name", runner.CloudName)
_, err = cmd.Output()
output, err := cmd.CombinedOutput()
if err != nil {
fmt.Println(string(output))
log.Fatal("Failed to install Rally deployment: ", err)
}
}