fix(archlinux): avoid nonetype error

This commit is contained in:
noelmcloughlin
2020-12-05 23:24:49 +00:00
parent 8b44c068fc
commit 0a6cf8fefa

View File

@@ -62,7 +62,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 %}