]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
Fix string compare for distro during EPEL install 251/head
authorTravis Rhoden <trhoden@redhat.com>
Tue, 18 Nov 2014 22:11:17 +0000 (17:11 -0500)
committerTravis Rhoden <trhoden@redhat.com>
Tue, 18 Nov 2014 22:11:17 +0000 (17:11 -0500)
Use distro.normalized_name instead of
distro.name.lower

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
ceph_deploy/hosts/centos/install.py

index 4f11c35db3a797c7fa185b2c45374ec8a60418c1..e3cd854b0364af50a35f583329af76fbe53a743d 100644 (file)
@@ -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')