This commit is contained in:
Nitin Madhok 2015-04-30 00:51:11 -04:00
parent 651992331c
commit 48d58c5688

View File

@ -2708,7 +2708,7 @@ def remove_all_snapshots(name, kwargs=None, call=None):
def add_host(kwargs=None, call=None): def add_host(kwargs=None, call=None):
''' '''
Add a host system to the specified cluster/datacenter in this VMware environment Add a host system to the specified cluster or datacenter in this VMware environment
.. note:: .. note::
@ -2816,8 +2816,8 @@ def add_host(kwargs=None, call=None):
spec.sslThumbprint = exc.thumbprint spec.sslThumbprint = exc.thumbprint
log.info('Trying to add the host system again using the SSL thumbprint returned by it') log.info('Trying to add the host system again using the SSL thumbprint returned by it')
ret = _add_host_helper(spec, data) ret = _add_host_helper(spec, data)
except: except Exception as new_exc:
log.error('Error while adding host {0}: {1}'.format(host_name, exc)) log.error('Error while adding host {0}: {1}'.format(host_name, new_exc))
return 'failed to add host' return 'failed to add host'
else: else:
log.error('Error while adding host {0}: {1}'.format(host_name, exc)) log.error('Error while adding host {0}: {1}'.format(host_name, exc))