summaryrefslogtreecommitdiff
path: root/cmd/podmanV2/system/version.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podmanV2/system/version.go')
-rw-r--r--cmd/podmanV2/system/version.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/cmd/podmanV2/system/version.go b/cmd/podmanV2/system/version.go
index 8d6e8b7a8..7004c3109 100644
--- a/cmd/podmanV2/system/version.go
+++ b/cmd/podmanV2/system/version.go
@@ -18,11 +18,13 @@ import (
var (
versionCommand = &cobra.Command{
- Use: "version",
- Args: cobra.NoArgs,
- Short: "Display the Podman Version Information",
- RunE: version,
- PersistentPreRunE: preRunE,
+ Use: "version",
+ Args: cobra.NoArgs,
+ Short: "Display the Podman Version Information",
+ RunE: version,
+ Annotations: map[string]string{
+ registry.ParentNSRequired: "",
+ },
}
versionFormat string
)