mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 08:25:40 +00:00
inspect: preserve secret target name in env masking
Fixes #28075 Signed-off-by: Amol Yadav <amyssnipet@yahoo.com>
This commit is contained in:
parent
09faf78441
commit
ac7d6c3fc4
1 changed files with 2 additions and 2 deletions
|
|
@ -386,9 +386,9 @@ func (c *Container) generateInspectContainerConfig(spec *spec.Spec) *define.Insp
|
|||
// env variables come in the style `name=value`
|
||||
envName := strings.Split(envValue, "=")[0]
|
||||
|
||||
envSecret, ok := envSecrets[envName]
|
||||
_, ok := envSecrets[envName]
|
||||
if ok {
|
||||
ctrConfig.Env[envIndex] = envSecret.Name + "=*******"
|
||||
ctrConfig.Env[envIndex] = envName + "=*******"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue