Don't forcibly push loaded images to registry. Fixes #3763

This commit is contained in:
Rodríguez, Jorge 2016-06-08 11:31:46 +03:00 committed by Matt Clay
parent 622592c413
commit 89e8787d65

View file

@ -191,6 +191,7 @@ EXAMPLES = '''
name: registry.ansible.com/chouseknecht/sinatra
tag: v1
load_path: my_sinatra.tar
push: True
'''
RETURN = '''
@ -275,7 +276,6 @@ class ImageManager(DockerBaseClass):
if not os.path.isfile(self.load_path):
self.fail("Error loading image %s. Specified path %s does not exist." % (self.name,
self.load_path))
self.push = True
image_name = self.name
if self.tag:
image_name = "%s:%s" % (self.name, self.tag)