def _get_proxy_connection_details():
 proxytype = get_proxy_type()
 if (proxytype == 'esxi'):
  details = __salt__['esxi.get_details']()
 else:
  raise CommandExecutionError("'{0}' proxy is not supported".format(proxytype))
 return ((details.get('vcenter') if ('vcenter' in details) else details.get('host')), details.get('username'), details.get('password'), details.get('protocol'), details.get('port'), details.get('mechanism'), details.get('principal'), details.get('domain'))

def _get_proxy_connection_details ( ) : proxytype = get_proxy_type ( ) if ( proxytype == 'esxi' ) : details = __salt__ [ 'esxi.get_details' ] ( ) else : raise CommandExecutionError ( "'{0}' proxy is not supported" . format ( proxytype ) ) return ( ( details . get ( 'vcenter' ) if ( 'vcenter' in details ) else details . get ( 'host' ) ) , details . get ( 'username' ) , details . get ( 'password' ) , details . get ( 'protocol' ) , details . get ( 'port' ) , details . get ( 'mechanism' ) , details . get ( 'principal' ) , details . get ( 'domain' ) )
returns the connection details of the following proxies: esxi .