def _get_api_url():
 api_url = (__salt__['config.get']('mattermost.api_url') or __salt__['config.get']('mattermost:api_url'))
 if (not api_url):
  raise SaltInvocationError('No Mattermost API URL found')
 return api_url

def _get_api_url ( ) : api_url = ( __salt__ [ 'config.get' ] ( 'mattermost.api_url' ) or __salt__ [ 'config.get' ] ( 'mattermost:api_url' ) ) if ( not api_url ) : raise SaltInvocationError ( 'No Mattermost API URL found' ) return api_url
retrieves and return the mattermosts configured api url :return: string: the api url string .