diff --git a/salt/salt/master/ext_pillar_postgres.sls b/salt/salt/master/ext_pillar_postgres.sls index 9ed071f38..2ab758604 100644 --- a/salt/salt/master/ext_pillar_postgres.sls +++ b/salt/salt/master/ext_pillar_postgres.sls @@ -10,7 +10,7 @@ # and the importer has run at least once. {% from 'allowed_states.map.jinja' import allowed_states %} -{% if sls.split('.')[0] in allowed_states %} +{% if 'salt.master' in allowed_states %} {% if salt['pillar.get']('postgres:so_pillar:enabled', False) %} diff --git a/salt/salt/master/pg_notify_pillar_engine.sls b/salt/salt/master/pg_notify_pillar_engine.sls index b3b840263..d91999608 100644 --- a/salt/salt/master/pg_notify_pillar_engine.sls +++ b/salt/salt/master/pg_notify_pillar_engine.sls @@ -12,7 +12,7 @@ # ext_pillar config so the three components flip together. {% from 'allowed_states.map.jinja' import allowed_states %} -{% if sls.split('.')[0] in allowed_states %} +{% if 'salt.master' in allowed_states %} {% if salt['pillar.get']('postgres:so_pillar:enabled', False) %}