def _get_application_url():
 application_url = __salt__['pillar.get']('uptime:application_url')
 if (application_url is None):
  log.error('Could not load {0} pillar'.format('uptime:application_url'))
  msg = '{0} pillar is required for authentication'
  raise CommandExecutionError(msg.format('uptime:application_url'))
 return application_url

def _get_application_url ( ) : application_url = __salt__ [ 'pillar.get' ] ( 'uptime:application_url' ) if ( application_url is None ) : log . error ( 'Could not load {0} pillar' . format ( 'uptime:application_url' ) ) msg = '{0} pillar is required for authentication' raise CommandExecutionError ( msg . format ( 'uptime:application_url' ) ) return application_url
helper function to get application url from pillar .