diff options
author | zhangguanzhang <zhangguanzhang@qq.com> | 2021-04-14 12:55:45 +0800 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-04-16 11:13:21 -0400 |
commit | 6a47afa79c04ddc6153e451df9de86317713fdfb (patch) | |
tree | 97436ba0b57d236181f4d35b9ee880dbe737871d /cmd | |
parent | c28695b9253569683c6e0e5f25a04c0701100b0a (diff) | |
download | podman-6a47afa79c04ddc6153e451df9de86317713fdfb.tar.gz podman-6a47afa79c04ddc6153e451df9de86317713fdfb.tar.bz2 podman-6a47afa79c04ddc6153e451df9de86317713fdfb.zip |
Fixes invalid expression in save command
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
Diffstat (limited to 'cmd')
-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 { |