Merge "Returning a tuple instead of list in list_extensions"
This commit is contained in:
commit
caf8e228db
@ -1042,11 +1042,11 @@ def list_extensions(nova_api):
|
|||||||
"""List all nova extensions, except the ones in the blacklist."""
|
"""List all nova extensions, except the ones in the blacklist."""
|
||||||
blacklist = set(getattr(settings,
|
blacklist = set(getattr(settings,
|
||||||
'OPENSTACK_NOVA_EXTENSIONS_BLACKLIST', []))
|
'OPENSTACK_NOVA_EXTENSIONS_BLACKLIST', []))
|
||||||
return [
|
return tuple(
|
||||||
extension for extension in
|
extension for extension in
|
||||||
nova_list_extensions.ListExtManager(nova_api).show_all()
|
nova_list_extensions.ListExtManager(nova_api).show_all()
|
||||||
if extension.name not in blacklist
|
if extension.name not in blacklist
|
||||||
]
|
)
|
||||||
|
|
||||||
|
|
||||||
@memoized_with_request(list_extensions, 1)
|
@memoized_with_request(list_extensions, 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user