Merge pull request #247 from noelmcloughlin/fixes

Fix 'requisites were not found'
This commit is contained in:
Niels Abspoel 2018-10-15 19:37:39 +02:00 committed by GitHub
commit 99c15acac9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,8 +51,8 @@ postgres-reload-modules:
{{ format_state( name + '-' + ext_name, 'postgres_extension', extension) }}
- require:
- postgres_database: postgres_database-{{ name }}
{%- if 'schema' in extension %}
- postgres_schema: postgres_schema-{{ extension.schema }}
{%- if 'schema' in extension and 'schemas' in postgres %}
- postgres_schema: postgres_schema-{{ name }}-{{ extension.schema }}
{%- endif %}
{%- endfor %}