Skip to content

Commit 44ac9ff

Browse files
Merge pull request #306 from noelmcloughlin/pkg
fix(archlinux): avoid nonetype error when grain is missing
2 parents 1509264 + 0a6cf8f commit 44ac9ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres/osfamilymap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ RedHat:
6363
gpgkey: 'https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-{{ release }}'
6464
baseurl: 'https://download.postgresql.org/pub/repos/yum/{{ repo.version }}/redhat/rhel-$releasever-$basearch'
6565

66-
{%- if grains.get('osmajorrelease') >= 7 %}
66+
{%- if grains.get('osmajorrelease', 0) >= 7 %}
6767
pkg_python: python3-psycopg2
6868
{%- endif %}
6969

0 commit comments

Comments
 (0)