Merge "Fix $DISTRO_NAME usage for centos7 element"
This commit is contained in:
commit
42e79c4a6e
@ -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'
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user