original_docstring: Return the service catalog associated with an auth plugin.
  
      :param auth: the auth plugin to inspect.
  
      :returns: a list containing the service catalog.
      
docstring: Return the service catalog associated with an auth plugin.
docstring_tokens: Return the service catalog associated with an auth plugin .
code: def service_catalog_from_auth(auth):
      '''Return the service catalog associated with an auth plugin.
  
      :param auth: the auth plugin to inspect.
  
      :returns: a list containing the service catalog.
      '''
      access_info = auth.get_access(
          sessions.cache().get_session(sessions.SESSION_TYPE_KEYSTONE))
      if access_info.has_service_catalog():
          return access_info.service_catalog.catalog
      else:
          return []
code_tokens: def service_catalog_from_auth ( auth ) : access_info = auth . get_access ( sessions . cache ( ) . get_session ( sessions . SESSION_TYPE_KEYSTONE ) ) if access_info . has_service_catalog ( ) : return access_info . service_catalog . catalog else : return [ ]
short_docstring: Return the service catalog associated with an auth plugin.
short_docstring_tokens: Return the service catalog associated with an auth plugin .
comment: '''Return the service catalog associated with an auth plugin.
  
      :param auth: the auth plugin to inspect.
  
      :returns: a list containing the service catalog.
      '''