mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Small cleanup to dockermod.save
Removes the call to get ``compression`` out of the kwargs dict as ``compression`` is already listed in the list of positional kwargs.
This commit is contained in:
parent
160001120b
commit
d6a5e85632
@ -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