Skip to content

Commit

Permalink
fix(macros.jinja): apply suggestion from PR
Browse files Browse the repository at this point in the history
Co-Authored-By: Denys Havrysh <[email protected]>
  • Loading branch information
myii and vutny authored Oct 28, 2019
1 parent 7ff798a commit d606b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgres/macros.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{%- if 'ensure' in kwarg %}
{%- set ensure = kwarg.pop('ensure') %}
{%- endif %}
{%- set user_available = False if (state == 'postgres_schema' and grains.saltversioninfo < [2018, 3]) else True %}
{%- set user_available = not (state == 'postgres_schema' and grains.saltversioninfo < [2018, 3]) %}
{%- if 'user' not in kwarg and user_available %}
{%- do kwarg.update({'user': postgres.user}) %}
{%- endif -%}
Expand Down

0 comments on commit d606b28

Please sign in to comment.