summaryrefslogtreecommitdiff
path: root/cmd/podmanV2
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-15 13:04:00 +0200
committerGitHub <noreply@github.com>2020-04-15 13:04:00 +0200
commitffcb99d8320f7b53548af7210b9705a3590a1bb8 (patch)
treebfaa768f5ed4ca44c2cace17e9f9d279ead19d25 /cmd/podmanV2
parentf0b6cdede554316643187d40c67684daf5a2a2bb (diff)
parent123158e83bae50cf8acd511a5611abbfa37fdc8a (diff)
downloadpodman-ffcb99d8320f7b53548af7210b9705a3590a1bb8.tar.gz
podman-ffcb99d8320f7b53548af7210b9705a3590a1bb8.tar.bz2
podman-ffcb99d8320f7b53548af7210b9705a3590a1bb8.zip
Merge pull request #5818 from vrothberg/fix-nil-deref
podmanV2: fix nil deref
Diffstat (limited to 'cmd/podmanV2')
-rw-r--r--cmd/podmanV2/root.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podmanV2/root.go b/cmd/podmanV2/root.go
index 6fc83a26b..0639257ea 100644
--- a/cmd/podmanV2/root.go
+++ b/cmd/podmanV2/root.go
@@ -71,7 +71,7 @@ func preRunE(cmd *cobra.Command, _ []string) error {
cmd.SetHelpTemplate(registry.HelpTemplate())
cmd.SetUsageTemplate(registry.UsageTemplate())
- if cmd.Flag("cpu_profile").Changed {
+ if cmd.Flag("cpu-profile").Changed {
f, err := os.Create(registry.PodmanOptions.CpuProfile)
if err != nil {
return errors.Wrapf(err, "unable to create cpu profiling file %s",