Skip to content

Commit

Permalink
Merge pull request #18 from bschamplin-stryker/patch-1
Browse files Browse the repository at this point in the history
Removed leading slash for the kubectl command in exec.
  • Loading branch information
mblaschke authored Feb 9, 2025
2 parents 4e44a8f + e0f3811 commit 5a0b3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drainmanager/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (m *DrainManagerKubernetes) exec(args ...string) bool {
args = append(args, "--dry-run")
}

return m.runComand(exec.Command("/kubectl", args...))
return m.runComand(exec.Command("kubectl", args...))
}

func (m *DrainManagerKubernetes) runComand(cmd *exec.Cmd) bool {
Expand Down

0 comments on commit 5a0b3a8

Please sign in to comment.