Print container name on shell access as well

mine
Joscha Alisch 2020-02-07 20:25:24 +01:00
parent 7d0febf4b0
commit fc2de70dea
No known key found for this signature in database
GPG Key ID: FCADD70C266FEEB5
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ func shellIn(a *App, path, co string) {
args := computeShellArgs(path, co, a.Config.K9s.CurrentContext, a.Conn().Config().Flags().KubeConfig)
log.Debug().Msgf("Shell args %v", args)
if !runK(true, a, fmt.Sprintf("Pod: %s\n\n", path, co), args...) {
if !runK(true, a, fmt.Sprintf("Pod: %s | Container: %s\n\n", path, co), args...) {
a.Flash().Err(errors.New("Shell exec failed"))
}
}