mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
cmd: do not require userns for "version"
Closes: https://github.com/containers/podman/issues/17657 [NO NEW TESTS NEEDED] Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -22,6 +22,9 @@ var (
|
||||
Short: "Display the Podman version information",
|
||||
RunE: version,
|
||||
ValidArgsFunction: completion.AutocompleteNone,
|
||||
Annotations: map[string]string{
|
||||
registry.ParentNSRequired: "",
|
||||
},
|
||||
}
|
||||
versionFormat string
|
||||
)
|
||||
|
@ -386,6 +386,7 @@ can_use_shortcut (char **argv)
|
||||
|
||||
if (strcmp (argv[argc], "mount") == 0
|
||||
|| strcmp (argv[argc], "machine") == 0
|
||||
|| strcmp (argv[argc], "version") == 0
|
||||
|| strcmp (argv[argc], "context") == 0
|
||||
|| strcmp (argv[argc], "search") == 0
|
||||
|| (strcmp (argv[argc], "system") == 0 && argv[argc+1] && strcmp (argv[argc+1], "service") != 0))
|
||||
|
Reference in New Issue
Block a user