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
commit 44ac9ff9d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ RedHat:
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'
{%- if grains.get('osmajorrelease') >= 7 %}
{%- if grains.get('osmajorrelease', 0) >= 7 %}
pkg_python: python3-psycopg2
{%- endif %}