Skip to content

Commit 671c947

Browse files
BUG: fix double execution of processes (#37)
`cmd.CombinedOutput()` already start the process, there is not need for Run()
1 parent 3f37a0f commit 671c947

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

haproxy/haproxy_cmd/run.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,6 @@ func execAndCapture(path string, re *regexp.Regexp) (string, error) {
113113
if err != nil {
114114
return "", fmt.Errorf("Failed executing %s: %s", path, err.Error())
115115
}
116-
err = cmd.Run()
117-
if err != nil {
118-
return "", fmt.Errorf("Failed executing %s: %s", path, err)
119-
}
120116
return string(re.Find([]byte(out))), nil
121117
}
122118

0 commit comments

Comments
 (0)