summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-04-08 09:35:49 -0500
committerBrent Baude <bbaude@redhat.com>2020-04-13 14:23:41 -0500
commit11fa4b6eba21b6dd1cb331cc6fb2216f4b535988 (patch)
tree672055bdd9921f2a6d0ce9f4c1b77ec08da06a48 /cmd
parentd7695dd957b162ed24c807dc91200fe1abaecff1 (diff)
downloadpodman-11fa4b6eba21b6dd1cb331cc6fb2216f4b535988.tar.gz
podman-11fa4b6eba21b6dd1cb331cc6fb2216f4b535988.tar.bz2
podman-11fa4b6eba21b6dd1cb331cc6fb2216f4b535988.zip
podmanv2 version format variable name change
change the name of the variable for version to avoid collision with other commands. Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podmanV2/system/version.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/podmanV2/system/version.go b/cmd/podmanV2/system/version.go
index e8002056b..8d6e8b7a8 100644
--- a/cmd/podmanV2/system/version.go
+++ b/cmd/podmanV2/system/version.go
@@ -24,7 +24,7 @@ var (
RunE: version,
PersistentPreRunE: preRunE,
}
- format string
+ versionFormat string
)
type versionStruct struct {
@@ -38,7 +38,7 @@ func init() {
Command: versionCommand,
})
flags := versionCommand.Flags()
- flags.StringVarP(&format, "format", "f", "", "Change the output format to JSON or a Go template")
+ flags.StringVarP(&versionFormat, "format", "f", "", "Change the output format to JSON or a Go template")
}
func version(cmd *cobra.Command, args []string) error {
@@ -62,7 +62,7 @@ func version(cmd *cobra.Command, args []string) error {
v.Server = v.Client
//}
- versionOutputFormat := format
+ versionOutputFormat := versionFormat
if versionOutputFormat != "" {
if strings.Join(strings.Fields(versionOutputFormat), "") == "{{json.}}" {
versionOutputFormat = formats.JSONString