summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-16 04:28:14 -0400
committerGitHub <noreply@github.com>2021-04-16 04:28:14 -0400
commit4c88035f09474a80264400aa825509900100e32e (patch)
tree314a55db07ba9de6e49a8b78d2a1a6d57b867351 /cmd/podman
parentb82ae19acffca14ff828b3b6d2ff851ada5c0577 (diff)
parent6bec101041abba77329a7e04a329ab9792f7e1aa (diff)
downloadpodman-4c88035f09474a80264400aa825509900100e32e.tar.gz
podman-4c88035f09474a80264400aa825509900100e32e.tar.bz2
podman-4c88035f09474a80264400aa825509900100e32e.zip
Merge pull request #10021 from zhangguanzhang/invalid-save-expression
Fix invalid expression in save command
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/images/save.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/images/save.go b/cmd/podman/images/save.go
index 6c03fc3c6..f1f7e8b2e 100644
--- a/cmd/podman/images/save.go
+++ b/cmd/podman/images/save.go
@@ -102,7 +102,7 @@ func save(cmd *cobra.Command, args []string) (finalErr error) {
tags []string
succeeded = false
)
- if cmd.Flag("compress").Changed && (saveOpts.Format != define.OCIManifestDir && saveOpts.Format != define.V2s2ManifestDir && saveOpts.Format == "") {
+ if cmd.Flag("compress").Changed && (saveOpts.Format != define.OCIManifestDir && saveOpts.Format != define.V2s2ManifestDir) {
return errors.Errorf("--compress can only be set when --format is either 'oci-dir' or 'docker-dir'")
}
if len(saveOpts.Output) == 0 {