diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2018-12-05 17:20:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-05 17:20:17 -0800 |
commit | 75b19ca8abe1957f3c48035767960a6b20c10519 (patch) | |
tree | dfb1cc13b0bdc1abad1ada51970bf0ac03d46810 | |
parent | 6bb56a1c972da9755ac5c7ec5bc5b04a0b92c9b7 (diff) | |
parent | 7c7231ce012afe808689156ded13bc1a78ecf4c5 (diff) | |
download | podman-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.py | 2 | ||||
-rw-r--r-- | contrib/python/podman/test/test_images.py | 2 |
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'))) |