From 2f5385d4396021cce5bd42cfe2b4e01849d4cc4e Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 14 Jun 2013 17:36:18 -0700 Subject: [PATCH] install: fix uninstall for fedora, suse Signed-off-by: Sage Weil --- ceph_deploy/install.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ceph_deploy/install.py b/ceph_deploy/install.py index 12f26f7..acd28ba 100644 --- a/ceph_deploy/install.py +++ b/ceph_deploy/install.py @@ -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() -- 2.47.3