def session_info(consul_url=None, session=None, **kwargs):
 ret = {}
 if (not consul_url):
  consul_url = _get_config()
  if (not consul_url):
   log.error('No Consul URL found.')
   ret['message'] = 'No Consul URL found.'
   ret['res'] = False
   return ret
 if (not session):
  raise SaltInvocationError('Required argument "session" is missing.')
 query_params = {}
 if ('dc' in kwargs):
  query_params['dc'] = kwargs['dc']
 function = 'session/info/{0}'.format(session)
 ret = _query(consul_url=consul_url, function=function, query_params=query_params)
 return ret

def session_info ( consul_url = None , session = None , ** kwargs ) : ret = { } if ( not consul_url ) : consul_url = _get_config ( ) if ( not consul_url ) : log . error ( 'No Consul URL found.' ) ret [ 'message' ] = 'No Consul URL found.' ret [ 'res' ] = False return ret if ( not session ) : raise SaltInvocationError ( 'Required argument "session" is missing.' ) query_params = { } if ( 'dc' in kwargs ) : query_params [ 'dc' ] = kwargs [ 'dc' ] function = 'session/info/{0}' . format ( session ) ret = _query ( consul_url = consul_url , function = function , query_params = query_params ) return ret
information about a session .