From 9edd55a05435a681c09258263db8d39f9ff37d46 Mon Sep 17 00:00:00 2001 From: miampf Date: Thu, 24 Oct 2024 17:28:25 +0200 Subject: [PATCH] print stderr of `katapolicygen` to os remove accidental inclusion of t --- e2e/internal/az/confcom.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/internal/az/confcom.go b/e2e/internal/az/confcom.go index 62a1a0ab8..3fa660042 100644 --- a/e2e/internal/az/confcom.go +++ b/e2e/internal/az/confcom.go @@ -6,6 +6,7 @@ package az import ( + "os" "os/exec" "strings" ) @@ -21,5 +22,7 @@ func KataPolicyGenVersion() (string, error) { // KataPolicyGen executes `az confcom katapolicygen --yaml `. func KataPolicyGen(resourcePath string) error { - return exec.Command("az", "confcom", "katapolicygen", "--yaml", resourcePath).Run() + cmd := exec.Command("az", "confcom", "katapolicygen", "--yaml", resourcePath) + cmd.Stderr = os.Stderr + return cmd.Run() }