Fix OSC plugin global declaration
TrivialFix Change-Id: I63f9eb8ab72799613387656d1edef50c14d579fd
This commit is contained in:
parent
0a62f86ffa
commit
b7b7f9f685
@ -21,6 +21,7 @@ cached_extensions = None
|
|||||||
def get_extensions(client_manager):
|
def get_extensions(client_manager):
|
||||||
"""Return a list of all current extensions aliases"""
|
"""Return a list of all current extensions aliases"""
|
||||||
# Return previously calculated results
|
# Return previously calculated results
|
||||||
|
global cached_extensions
|
||||||
if cached_extensions is not None:
|
if cached_extensions is not None:
|
||||||
return cached_extensions
|
return cached_extensions
|
||||||
# Get supported extensions from the manager
|
# Get supported extensions from the manager
|
||||||
@ -31,6 +32,5 @@ def get_extensions(client_manager):
|
|||||||
s, ('Alias',), formatters={})
|
s, ('Alias',), formatters={})
|
||||||
extensions.append(prop[0])
|
extensions.append(prop[0])
|
||||||
# Save the results in the global cache
|
# Save the results in the global cache
|
||||||
global cached_extensions
|
|
||||||
cached_extensions = extensions
|
cached_extensions = extensions
|
||||||
return extensions
|
return extensions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user