diff options
author | zhangguanzhang <zhangguanzhang@qq.com> | 2021-04-14 12:55:45 +0800 |
---|---|---|
committer | zhangguanzhang <zhangguanzhang@qq.com> | 2021-04-14 17:32:48 +0800 |
commit | 6bec101041abba77329a7e04a329ab9792f7e1aa (patch) | |
tree | 03a17ba843ad2a52fcb76dc36a0a52ef79232b0b /cmd/podman/images | |
parent | 4a22d6117aeb2f2b9fa120328bba857f7fd54d47 (diff) | |
download | podman-6bec101041abba77329a7e04a329ab9792f7e1aa.tar.gz podman-6bec101041abba77329a7e04a329ab9792f7e1aa.tar.bz2 podman-6bec101041abba77329a7e04a329ab9792f7e1aa.zip |
Fixes invalid expression in save command
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
Diffstat (limited to 'cmd/podman/images')
-rw-r--r-- | cmd/podman/images/save.go | 2 |
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 { |