mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Don't repeat the program name in healthCheckCommand.String()
The name is in both 'Path' and 'Args[0]', so start printing args at 1. Also refactor to avoid an extra space character in the output.
This commit is contained in:
parent
524c5b5361
commit
0991c04be1
@ -397,5 +397,5 @@ func newHealthCheckCommand(healthCheckUrl string, cmd *exec.Cmd, filename string
|
||||
}
|
||||
|
||||
func (hcc *healthCheckCommand) String() string {
|
||||
return fmt.Sprintf("`%s %s` health-check: %s", hcc.Path, strings.Join(hcc.Args, " "), hcc.HealthCheckUrl)
|
||||
return fmt.Sprintf("`%s` health-check: %s", strings.Join(append([]string{hcc.Path}, hcc.Args[1:]...), " "), hcc.HealthCheckUrl)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user