Skip to content

Commit

Permalink
fix(repo): check whether pkg_repo is set
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbertoli committed Feb 26, 2021
1 parent 750d8aa commit 70d224e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions postgres/client/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{%- endif %}
{%- endfor %}
{%- if postgres.use_upstream_repo == true %}
{%- if 'pkg_repo' in postgres and postgres.use_upstream_repo == true %}
include:
- postgres.upstream
{%- endif %}
Expand All @@ -16,7 +16,7 @@ include:
postgresql-client-libs:
pkg.installed:
- pkgs: {{ pkgs | json }}
{%- if postgres.use_upstream_repo == true %}
{%- if 'pkg_repo' in postgres and postgres.use_upstream_repo == true %}
- refresh: True
- require:
- pkgrepo: postgresql-repo
Expand Down
2 changes: 1 addition & 1 deletion postgres/codenamemap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{% macro fedora_codename(name, version, codename=none) %}

{# use upstream version if configured #}
{% if repo.use_upstream_repo == true %}
{% repo.use_upstream_repo == true %}
{% set version = repo.version %}
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion postgres/dev/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ postgres_maxfiles_limits_conf:
- group: {{ postgres.group }}
{% endif %}
{% if postgres.use_upstream_repo == 'postgresapp' %}
{% if 'pkg_repo' in postgres and postgres.use_upstream_repo == 'postgresapp' %}
# Shortcut for PostgresApp
postgres-desktop-shortcut-clean:
file.absent:
Expand Down
2 changes: 1 addition & 1 deletion postgres/python.sls
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ postgresql-python:
{% if postgres.fromrepo %}
- fromrepo: {{ postgres.fromrepo }}
{% endif %}
{% if postgres.use_upstream_repo == true %}
{% if 'pkg_repo' in postgres and postgres.use_upstream_repo == true %}
- refresh: True
- require:
- pkgrepo: postgresql-repo
Expand Down
4 changes: 2 additions & 2 deletions postgres/server/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{%- if postgres.bake_image %}
{%- do includes.append('postgres.server.image') %}
{%- endif %}
{%- if postgres.use_upstream_repo == true -%}
{%- if 'pkg_repo' in postgres and postgres.use_upstream_repo == true -%}
{%- do includes.append('postgres.upstream') %}
{%- endif %}
Expand All @@ -18,7 +18,7 @@ include:
postgresql-server:
pkg.installed:
- pkgs: {{ pkgs | json }}
{%- if postgres.use_upstream_repo == true %}
{%- if 'pkg_repo' in postgres and postgres.use_upstream_repo == true %}
- refresh: True
- require:
- pkgrepo: postgresql-repo
Expand Down

0 comments on commit 70d224e

Please sign in to comment.