Show output of prepare manifests if failed 88/1188/1
authorYolanda Robla <yroblamo@redhat.com>
Mon, 15 Jul 2019 13:46:46 +0000 (15:46 +0200)
committerYolanda Robla <yroblamo@redhat.com>
Mon, 15 Jul 2019 13:46:46 +0000 (15:46 +0200)
Right now when apply manifests fail, just shows a
cryptic error. Showing the whole output of the command
now, to allow troubleshoot.

Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I7141950e516250368be7dc6705d8071bec64b8f8

pkg/site/site.go

index 7e68a72..c07f509 100644 (file)
@@ -265,9 +265,10 @@ func (s Site) PrepareManifests() {
 
        // now generate the manifests
        cmd = exec.Command(fmt.Sprintf("%s/openshift-install", binariesPath), "create", "manifests", fmt.Sprintf("--dir=%s", assetsPath), "--log-level", "debug")
-       err = cmd.Run()
+       out, err = cmd.Output()
        if err != nil {
                log.Fatal(fmt.Sprintf("Error creating manifests: %s", err))
+               log.Println(out)
                os.Exit(1)
        }