From: Travis Rhoden Date: Tue, 18 Nov 2014 22:11:17 +0000 (-0500) Subject: Fix string compare for distro during EPEL install X-Git-Tag: v1.5.21~6^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F251%2Fhead;p=ceph-deploy.git Fix string compare for distro during EPEL install Use distro.normalized_name instead of distro.name.lower Signed-off-by: Travis Rhoden --- diff --git a/ceph_deploy/hosts/centos/install.py b/ceph_deploy/hosts/centos/install.py index 4f11c35..e3cd854 100644 --- a/ceph_deploy/hosts/centos/install.py +++ b/ceph_deploy/hosts/centos/install.py @@ -116,7 +116,7 @@ def install_epel(distro): CentOS and Scientific need the EPEL repo, otherwise Ceph cannot be installed. """ - if distro.name.lower() in ['centos', 'scientific']: + if distro.normalized_name in ['centos', 'scientific']: distro.conn.logger.info('adding EPEL repository') pkg_managers.yum(distro.conn, 'epel-release')