Skip to content

Commit d606b28

Browse files
myiivutny
andauthored
fix(macros.jinja): apply suggestion from PR
Co-Authored-By: Denys Havrysh <Denys.Gavrysh@gmail.com>
1 parent 7ff798a commit d606b28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres/macros.jinja

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{%- if 'ensure' in kwarg %}
1919
{%- set ensure = kwarg.pop('ensure') %}
2020
{%- endif %}
21-
{%- set user_available = False if (state == 'postgres_schema' and grains.saltversioninfo < [2018, 3]) else True %}
21+
{%- set user_available = not (state == 'postgres_schema' and grains.saltversioninfo < [2018, 3]) %}
2222
{%- if 'user' not in kwarg and user_available %}
2323
{%- do kwarg.update({'user': postgres.user}) %}
2424
{%- endif -%}

0 commit comments

Comments
 (0)