mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
e2e: Fetch the correct user name
When fetching the user name, you need to use User.Username instead of User.Name, as with other tests. Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
This commit is contained in:
@ -4533,7 +4533,7 @@ ENV OPENJ9_JAVA_OPTIONS=%q
|
||||
It("podman play kube using a user namespace", func() {
|
||||
u, err := user.Current()
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
name := u.Name
|
||||
name := u.Username
|
||||
if name == "root" {
|
||||
name = "containers"
|
||||
}
|
||||
|
Reference in New Issue
Block a user