Merge pull request #43030 from rallytime/dockermod-minor-change

Small cleanup to dockermod.save
This commit is contained in:
garethgreenaway 2017-08-17 15:25:59 -07:00 committed by GitHub
commit 246176b1a6

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'