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 26b2233
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion postgres/client/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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/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
2 changes: 1 addition & 1 deletion postgres/server/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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 26b2233

Please sign in to comment.