vmware_inventory: define si outside try/except (#66482)

pull/66490/head
Jim Ladd 5 years ago committed by Abhijeet Kasurde
parent 62991a8bdd
commit 317c7fe144

@ -366,6 +366,7 @@ class VMWareInventory(object):
def _get_instances(self, inkwargs): def _get_instances(self, inkwargs):
''' Make API calls ''' ''' Make API calls '''
instances = [] instances = []
si = None
try: try:
si = SmartConnect(**inkwargs) si = SmartConnect(**inkwargs)
except ssl.SSLError as connection_error: except ssl.SSLError as connection_error:

Loading…
Cancel
Save