Merge "Fix $DISTRO_NAME usage for centos7 element"

This commit is contained in:
Jenkins 2014-10-02 10:10:04 +00:00 committed by Gerrit Code Review
commit 42e79c4a6e
2 changed files with 2 additions and 2 deletions

View File

@ -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'

View File

@ -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'