From b0fb2844323ed03aacfb6055cce3dc661a04643e Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Sun, 5 Apr 2020 21:35:32 -0400 Subject: [PATCH] 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 --- rally/runner.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rally/runner.go b/rally/runner.go index c0e5f1c..f33108e 100644 --- a/rally/runner.go +++ b/rally/runner.go @@ -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) } }