summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-12-05 17:20:17 -0800
committerGitHub <noreply@github.com>2018-12-05 17:20:17 -0800
commit75b19ca8abe1957f3c48035767960a6b20c10519 (patch)
treedfb1cc13b0bdc1abad1ada51970bf0ac03d46810
parent6bb56a1c972da9755ac5c7ec5bc5b04a0b92c9b7 (diff)
parent7c7231ce012afe808689156ded13bc1a78ecf4c5 (diff)
downloadpodman-75b19ca8abe1957f3c48035767960a6b20c10519.tar.gz
podman-75b19ca8abe1957f3c48035767960a6b20c10519.tar.bz2
podman-75b19ca8abe1957f3c48035767960a6b20c10519.zip
Merge pull request #1945 from jwhonce/bug/1929
Invert tlsverify default in API
-rw-r--r--contrib/python/podman/podman/libs/images.py2
-rw-r--r--contrib/python/podman/test/test_images.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/python/podman/podman/libs/images.py b/contrib/python/podman/podman/libs/images.py
index 6dfc4a656..ae1b86390 100644
--- a/contrib/python/podman/podman/libs/images.py
+++ b/contrib/python/podman/podman/libs/images.py
@@ -75,7 +75,7 @@ class Image(collections.UserDict):
obj = json.loads(results['image'], object_hook=fold_keys())
return collections.namedtuple('ImageInspect', obj.keys())(**obj)
- def push(self, target, tlsverify=False):
+ def push(self, target, tlsverify=True):
"""Copy image to target, return id on success."""
with self._client() as podman:
results = podman.PushImage(self._id, target, tlsverify)
diff --git a/contrib/python/podman/test/test_images.py b/contrib/python/podman/test/test_images.py
index f97e13b4c..45f0a2964 100644
--- a/contrib/python/podman/test/test_images.py
+++ b/contrib/python/podman/test/test_images.py
@@ -102,7 +102,7 @@ class TestImages(PodmanTestCase):
def test_push(self):
path = '{}/alpine_push'.format(self.tmpdir)
target = 'dir:{}'.format(path)
- self.alpine_image.push(target)
+ self.alpine_image.push(target, tlsverify=False)
self.assertTrue(os.path.isfile(os.path.join(path, 'manifest.json')))
self.assertTrue(os.path.isfile(os.path.join(path, 'version')))