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:
parent
b382904214
commit
f0b0ba8a0a
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue