code: def _gather_pillar(pillarenv, pillar_override):
      '''
      Whenever a state run starts, gather the pillar data fresh
      '''
      pillar = salt.pillar.get_pillar(
          __opts__,
          __grains__,
          __opts__['id'],
          __opts__['saltenv'],
          pillar_override=pillar_override,
          pillarenv=pillarenv
      )
      ret = pillar.compile_pillar()
      if pillar_override and isinstance(pillar_override, dict):
          ret.update(pillar_override)
      return ref _gather_pillar(pillarenv, pillar_override):
      '''
      Whenever a state run starts, gather the pillar data fresh
      '''
      pillar = salt.pillar.get_pillar(
          __opts__,
          __grains__,
          __opts__['id'],
          __opts__['saltenv'],
          pillar_override=pillar_override,
          pillarenv=pillarenv
      )
      ret = pillar.compile_pillar()
      if pillar_override and isinstance(pillar_override, dict):
          ret.update(pillar_override)
      return ret
docs: Whenever a state run starts, gather the pillar data fresh