Merge "Optimize list_servers call in cleanupLeakedInstances"

This commit is contained in:
Zuul 2021-03-06 06:14:40 +00:00 committed by Gerrit Code Review
commit 6efac6cea2
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ class OpenStackProvider(Provider, QuotaSupport):
deleting_nodes[node.provider] = []
deleting_nodes[node.provider].append(node.external_id)
for server in self.listNodes():
for server in self._client.list_servers(bare=True):
meta = server.get('metadata', {})
if 'nodepool_provider_name' not in meta: