Don't get extra flavor specs

It's not a big deal because we cache this - but we don't care at all
about the extra flavor specs, so skip fetching them for each of the
flavors.

Change-Id: Iff73bdbe598fcf7556eafc484325f79452975a4f
This commit is contained in:
Monty Taylor 2016-04-16 10:26:24 -05:00
parent b382904214
commit f0b0ba8a0a
No known key found for this signature in database
GPG Key ID: 3390DB68041A12F0
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ class FakeOpenStackCloud(object):
self._image_list, instance_type=Dummy.IMAGE,
name=image_name, **metadata)
def list_flavors(self):
def list_flavors(self, get_extra=False):
return self._flavor_list
def create_keypair(self, name, public_key):

View File

@ -303,7 +303,7 @@ class ProviderManager(TaskManager):
def listFlavors(self):
with shade_inner_exceptions():
return self._client.list_flavors()
return self._client.list_flavors(get_extra=False)
def listServers(self):
# shade list_servers carries the nodepool server list caching logic