From b7b7f9f6858dea05d697657dc3c68018ff4f0206 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Thu, 9 Mar 2017 14:58:09 +0200 Subject: [PATCH] Fix OSC plugin global declaration TrivialFix Change-Id: I63f9eb8ab72799613387656d1edef50c14d579fd --- vmware_nsx/osc/v2/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsx/osc/v2/utils.py b/vmware_nsx/osc/v2/utils.py index 69c5b20f31..89d247153e 100644 --- a/vmware_nsx/osc/v2/utils.py +++ b/vmware_nsx/osc/v2/utils.py @@ -21,6 +21,7 @@ cached_extensions = None def get_extensions(client_manager): """Return a list of all current extensions aliases""" # Return previously calculated results + global cached_extensions if cached_extensions is not None: return cached_extensions # Get supported extensions from the manager @@ -31,6 +32,5 @@ def get_extensions(client_manager): s, ('Alias',), formatters={}) extensions.append(prop[0]) # Save the results in the global cache - global cached_extensions cached_extensions = extensions return extensions