vmware_inventory: define si outside try/except (#66482)
This commit is contained in:
parent
62991a8bdd
commit
317c7fe144
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue