mirror of https://github.com/containers/podman.git
Merge pull request #6752 from rhatdan/inspect
Fix inspect to display multiple label: changes
This commit is contained in:
commit
2df3faab7b
|
@ -520,7 +520,7 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *ContainerCLIOpts, args []string
|
||||||
case "label":
|
case "label":
|
||||||
// TODO selinux opts and label opts are the same thing
|
// TODO selinux opts and label opts are the same thing
|
||||||
s.ContainerSecurityConfig.SelinuxOpts = append(s.ContainerSecurityConfig.SelinuxOpts, con[1])
|
s.ContainerSecurityConfig.SelinuxOpts = append(s.ContainerSecurityConfig.SelinuxOpts, con[1])
|
||||||
s.Annotations[define.InspectAnnotationLabel] = con[1]
|
s.Annotations[define.InspectAnnotationLabel] = strings.Join(s.ContainerSecurityConfig.SelinuxOpts, ",label=")
|
||||||
case "apparmor":
|
case "apparmor":
|
||||||
s.ContainerSecurityConfig.ApparmorProfile = con[1]
|
s.ContainerSecurityConfig.ApparmorProfile = con[1]
|
||||||
s.Annotations[define.InspectAnnotationApparmor] = con[1]
|
s.Annotations[define.InspectAnnotationApparmor] = con[1]
|
||||||
|
|
Loading…
Reference in New Issue