def get_mistral_api_url(api_version=DEFAULT_API_VERSION):
 if cfg.CONF.mistral.api_url:
  api_url = get_url_without_trailing_slash(cfg.CONF.mistral.api_url)
  api_url = ('%s/%s' % (api_url, api_version))
 else:
  LOG.warn('"mistral.api_url" not set, using auth.api_url')
  api_url = get_full_public_api_url(api_version=api_version)
 return api_url

def get_mistral_api_url ( api_version = DEFAULT_API_VERSION ) : if cfg . CONF . mistral . api_url : api_url = get_url_without_trailing_slash ( cfg . CONF . mistral . api_url ) api_url = ( '%s/%s' % ( api_url , api_version ) ) else : LOG . warn ( '"mistral.api_url" not set, using auth.api_url' ) api_url = get_full_public_api_url ( api_version = api_version ) return api_url
return a url which mistral uses to talk back to the stackstorm api .