def test_vcenter_connection(kwargs=None, call=None):
 if (call != 'function'):
  raise SaltCloudSystemExit('The test_vcenter_connection function must be called with -f or --function.')
 try:
  _get_si()
 except Exception as exc:
  return 'failed to connect: {0}'.format(exc)
 return 'connection successful'

def test_vcenter_connection ( kwargs = None , call = None ) : if ( call != 'function' ) : raise SaltCloudSystemExit ( 'The test_vcenter_connection function must be called with -f or --function.' ) try : _get_si ( ) except Exception as exc : return 'failed to connect: {0}' . format ( exc ) return 'connection successful'
test if the connection can be made to the vcenter server using the specified credentials inside /etc/salt/cloud .