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:
rallytime 2017-08-17 16:30:46 -04:00
parent 160001120b
commit d6a5e85632

View File

@ -3843,7 +3843,6 @@ def save(name,
if os.path.exists(path) and not overwrite:
raise CommandExecutionError('{0} already exists'.format(path))
compression = kwargs.get('compression')
if compression is None:
if path.endswith('.tar.gz') or path.endswith('.tgz'):
compression = 'gzip'