]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
install: fix uninstall for fedora, suse
authorSage Weil <sage@inktank.com>
Sat, 15 Jun 2013 00:36:18 +0000 (17:36 -0700)
committerSage Weil <sage@inktank.com>
Sat, 15 Jun 2013 00:36:18 +0000 (17:36 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
ceph_deploy/install.py

index 12f26f7858d073e2e516cd40b92bb15609820959..acd28ba6c35519e907ec658f4af14261354f79c8 100644 (file)
@@ -423,14 +423,17 @@ def uninstall(args):
         LOG.debug('Distro %s codename %s', distro, codename)
 
         if (distro == 'Debian' or distro == 'Ubuntu'):
-            LOG.debug('Uninstalling on host %s ...', hostname)
             uninstall_r = sudo.compile(uninstall_debian)
         elif (distro == 'CentOS' or distro == 'Scientific') or distro.startswith('RedHat'):
-            LOG.debug('Uninstalling on host %s ...', hostname)
             uninstall_r = sudo.compile(uninstall_centos)
+        elif distro == 'Fedora':
+            uninstall_r = sudo.compile(uninstall_fedora)
+        elif (distro == 'SUSE LINUX'):
+            uninstall_r = sudo.compile(uninstall_suse)
         else:
             raise exc.UnsupportedPlatform(distro=distro, codename=codename)
 
+        LOG.debug('Uninstalling on host %s ...', hostname)
         uninstall_r()
         sudo.close()