def _get_hook():
 hook = (__salt__['config.get']('mattermost.hook') or __salt__['config.get']('mattermost:hook'))
 if (not hook):
  raise SaltInvocationError('No Mattermost Hook found')
 return hook

def _get_hook ( ) : hook = ( __salt__ [ 'config.get' ] ( 'mattermost.hook' ) or __salt__ [ 'config.get' ] ( 'mattermost:hook' ) ) if ( not hook ) : raise SaltInvocationError ( 'No Mattermost Hook found' ) return hook
retrieves and return the mattermosts configured hook :return: string: the hook string .