]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
openstack: use --limit 2000 with openstack image list command
authorNathan Cutler <ncutler@suse.com>
Fri, 2 Jun 2017 12:42:32 +0000 (14:42 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@gmail.com>
Mon, 14 Oct 2019 22:11:40 +0000 (00:11 +0200)
The --limit defaults to 25, which is way too low.

Fixes: https://github.com/SUSE/teuthology/issues/82
Signed-off-by: Loic Dachary <loic@dachary.org>
Signed-off-by: Nathan Cutler <ncutler@suse.com>
teuthology/openstack/__init__.py

index 76aa35a0c1d2a656f6131a9974208878faf97cde..545b9fb1b7b5ef4d2a56299efc9a0b2e804ace14 100644 (file)
@@ -340,7 +340,7 @@ class OpenStack(object):
         """
         Return true if the image exists in OpenStack.
         """
-        found = self.run("image list -f json --private --property name='" +
+        found = self.run("image list -f json --limit 2000 --private --property name='" +
                         self.image_name(image) + "'")
         return len(json.loads(found)) > 0