mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #43030 from rallytime/dockermod-minor-change
Small cleanup to dockermod.save
This commit is contained in:
commit
246176b1a6
@ -3843,7 +3843,6 @@ def save(name,
|
|||||||
if os.path.exists(path) and not overwrite:
|
if os.path.exists(path) and not overwrite:
|
||||||
raise CommandExecutionError('{0} already exists'.format(path))
|
raise CommandExecutionError('{0} already exists'.format(path))
|
||||||
|
|
||||||
compression = kwargs.get('compression')
|
|
||||||
if compression is None:
|
if compression is None:
|
||||||
if path.endswith('.tar.gz') or path.endswith('.tgz'):
|
if path.endswith('.tar.gz') or path.endswith('.tgz'):
|
||||||
compression = 'gzip'
|
compression = 'gzip'
|
||||||
|
Loading…
Reference in New Issue
Block a user