Merge "Set limit to -1 when getting Nova instances"

This commit is contained in:
Zuul 2020-09-23 11:56:02 +00:00 committed by Gerrit Code Review
commit dc2faefa72

View File

@ -34,7 +34,8 @@ def load_mgmt_instances(context, deleted=None, client=None,
client = clients.create_nova_client(
context, CONF.service_credentials.region_name
)
mgmt_servers = client.servers.list(search_opts={'all_tenants': 1})
mgmt_servers = client.servers.list(search_opts={'all_tenants': 1},
limit=-1)
LOG.info("Found %d servers in Nova",
len(mgmt_servers if mgmt_servers else []))
args = {}