update to latest vmware_inventory.py

63737ec0f8/contrib/inventory/vmware_inventory.py

see: https://github.com/ansible/awx/issues/5648
This commit is contained in:
Ryan Petrello
2020-01-15 10:40:01 -05:00
parent 78e2cd7084
commit 6e5028587a

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: