We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
user
1 parent eefb89e commit 7ff798aCopy full SHA for 7ff798a
postgres/macros.jinja
@@ -18,7 +18,8 @@
18
{%- if 'ensure' in kwarg %}
19
{%- set ensure = kwarg.pop('ensure') %}
20
{%- endif %}
21
- {%- if 'user' not in kwarg and state != 'postgres_schema' %}
+ {%- set user_available = False if (state == 'postgres_schema' and grains.saltversioninfo < [2018, 3]) else True %}
22
+ {%- if 'user' not in kwarg and user_available %}
23
{%- do kwarg.update({'user': postgres.user}) %}
24
{%- endif -%}
25
0 commit comments