aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-08-22 13:33:10 -0400
committerGitHub <noreply@github.com>2022-08-22 13:33:10 -0400
commitbbbed3d822017e74fd46688fc1f67f6a97bf204a (patch)
treeb8a9b341e2a1378135a9a0713bfb4ed99f944fed /cmd
parentbec7e8a6456de2853e5a5f733d144dffc9885073 (diff)
parent976ce76ebaa7cfcb5de28f12b8f4a2e81f6b8e7d (diff)
downloadpodman-bbbed3d822017e74fd46688fc1f67f6a97bf204a.tar.gz
podman-bbbed3d822017e74fd46688fc1f67f6a97bf204a.tar.bz2
podman-bbbed3d822017e74fd46688fc1f67f6a97bf204a.zip
Merge pull request #15369 from ht-vo/podman-save-validation
podman save: update --compress validation
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/images/save.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/images/save.go b/cmd/podman/images/save.go
index 43366e1b3..ecff0f841 100644
--- a/cmd/podman/images/save.go
+++ b/cmd/podman/images/save.go
@@ -103,8 +103,8 @@ 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) {
- return errors.New("--compress can only be set when --format is either 'oci-dir' or 'docker-dir'")
+ if cmd.Flag("compress").Changed && saveOpts.Format != define.V2s2ManifestDir {
+ return errors.New("--compress can only be set when --format is 'docker-dir'")
}
if len(saveOpts.Output) == 0 {
saveOpts.Quiet = true