Fix $DISTRO_NAME usage for centos7 element
In both of the changed files in this patch, the $DISTRO_NAME usage is checking against "centos". The valid value for the centos7 element for $DISTRO_NAME is "centos7"[1]. [1] http://git.io/8IvuTw Change-Id: I0c4a4b2ecf87c7a9283d10071f6feb494a6c716a
This commit is contained in:
parent
de60893ccd
commit
c8037cc73f
@ -22,7 +22,7 @@ import sys
|
|||||||
|
|
||||||
def os_family(distro):
|
def os_family(distro):
|
||||||
family = None
|
family = None
|
||||||
if distro in ['centos', 'fedora', 'rhel', 'rhel7', 'centos7']:
|
if distro in ['fedora', 'rhel', 'rhel7', 'centos7']:
|
||||||
family = 'redhat'
|
family = 'redhat'
|
||||||
elif distro in ['debian', 'ubuntu']:
|
elif distro in ['debian', 'ubuntu']:
|
||||||
family = 'debian'
|
family = 'debian'
|
||||||
|
@ -7,7 +7,7 @@ import yaml
|
|||||||
def os_family(distro):
|
def os_family(distro):
|
||||||
"""Given a distribution, returns a operating system family."""
|
"""Given a distribution, returns a operating system family."""
|
||||||
family = None
|
family = None
|
||||||
if distro in ['centos', 'fedora', 'rhel', 'rhel7']:
|
if distro in ['centos7', 'fedora', 'rhel', 'rhel7']:
|
||||||
family = 'redhat'
|
family = 'redhat'
|
||||||
elif distro in ['debian', 'ubuntu']:
|
elif distro in ['debian', 'ubuntu']:
|
||||||
family = 'debian'
|
family = 'debian'
|
||||||
|
Loading…
Reference in New Issue
Block a user