Skip to content

Commit

Permalink
print stderr of katapolicygen to os
Browse files Browse the repository at this point in the history
remove accidental inclusion of t
  • Loading branch information
miampf committed Oct 24, 2024
1 parent 0a6c0c3 commit b06a87e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e2e/internal/az/confcom.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package az

import (
"os"
"os/exec"
"strings"
)
Expand All @@ -21,5 +22,7 @@ func KataPolicyGenVersion() (string, error) {

// KataPolicyGen executes `az confcom katapolicygen --yaml <resourcePath>`.
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()
}

0 comments on commit b06a87e

Please sign in to comment.