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

This commit is contained in:
Jim Ladd 2020-01-14 20:13:23 -08:00 committed by Abhijeet Kasurde
parent 62991a8bdd
commit 317c7fe144

View file

@ -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: