Merge pull request #306 from noelmcloughlin/pkg

fix(archlinux): avoid nonetype error when grain is missing
This commit is contained in:
N
2020-12-07 10:24:36 +00:00
committed by GitHub

View File

@@ -63,7 +63,7 @@ RedHat:
gpgkey: 'https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ release }}' gpgkey: 'https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ release }}'
baseurl: 'https://download.postgresql.org/pub/repos/yum/{{ repo.version }}/redhat/rhel-$releasever-$basearch' baseurl: 'https://download.postgresql.org/pub/repos/yum/{{ repo.version }}/redhat/rhel-$releasever-$basearch'
{%- if grains.get('osmajorrelease') >= 7 %} {%- if grains.get('osmajorrelease', 0) >= 7 %}
pkg_python: python3-psycopg2 pkg_python: python3-psycopg2
{%- endif %} {%- endif %}