From 831b130f98a18db09c862f56e80b788bbf094373 Mon Sep 17 00:00:00 2001 From: Travis Rhoden Date: Tue, 18 Nov 2014 17:11:17 -0500 Subject: [PATCH] Fix string compare for distro during EPEL install Use distro.normalized_name instead of distro.name.lower Signed-off-by: Travis Rhoden --- ceph_deploy/hosts/centos/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.47.3