mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-09 10:25:42 +00:00
podman save: update --compress validation
[NO NEW TESTS NEEDED] Signed-off-by: Hoang Thanh VO <111461555+ht-vo@users.noreply.github.com>
This commit is contained in:
parent
45672c61d7
commit
0ab8ebd1a8
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue