mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-17 10:10:31 +00:00
fix(macros.jinja): apply suggestion from PR
Co-Authored-By: Denys Havrysh <Denys.Gavrysh@gmail.com>
This commit is contained in:
parent
7ff798a27e
commit
d606b28692
1 changed files with 1 additions and 1 deletions
|
@ -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 -%}
|
||||
|
|
Loading…
Add table
Reference in a new issue