diff --git a/elements/pkg-map/bin/pkg-map b/elements/pkg-map/bin/pkg-map index e529d3fb9..0ff696adf 100755 --- a/elements/pkg-map/bin/pkg-map +++ b/elements/pkg-map/bin/pkg-map @@ -22,7 +22,7 @@ import sys def os_family(distro): family = None - if distro in ['centos', 'fedora', 'rhel', 'rhel7', 'centos7']: + if distro in ['fedora', 'rhel', 'rhel7', 'centos7']: family = 'redhat' elif distro in ['debian', 'ubuntu']: family = 'debian' diff --git a/elements/svc-map/extra-data.d/10-merge-svc-map-files b/elements/svc-map/extra-data.d/10-merge-svc-map-files index b65fb5ea8..57ccbb948 100755 --- a/elements/svc-map/extra-data.d/10-merge-svc-map-files +++ b/elements/svc-map/extra-data.d/10-merge-svc-map-files @@ -7,7 +7,7 @@ import yaml def os_family(distro): """Given a distribution, returns a operating system family.""" family = None - if distro in ['centos', 'fedora', 'rhel', 'rhel7']: + if distro in ['centos7', 'fedora', 'rhel', 'rhel7']: family = 'redhat' elif distro in ['debian', 'ubuntu']: family = 'debian'