From: David Disseldorp Date: Fri, 12 Jun 2015 12:50:21 +0000 (+0200) Subject: suse/uninstall: use the zypper remove helper X-Git-Tag: v1.5.26~8^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3158303cfdea889f9c1d07e2fa84b2109fc00775;p=ceph-deploy.git suse/uninstall: use the zypper remove helper Signed-off-by: David Disseldorp --- diff --git a/ceph_deploy/hosts/suse/uninstall.py b/ceph_deploy/hosts/suse/uninstall.py index 17e5847..fa85dec 100644 --- a/ceph_deploy/hosts/suse/uninstall.py +++ b/ceph_deploy/hosts/suse/uninstall.py @@ -1,4 +1,4 @@ -from ceph_deploy.lib import remoto +from ceph_deploy.util import pkg_managers def uninstall(conn, purge=False): @@ -10,12 +10,4 @@ def uninstall(conn, purge=False): 'librbd1', 'ceph-radosgw', ] - cmd = [ - 'zypper', - '--non-interactive', - '--quiet', - 'remove', - ] - - cmd.extend(packages) - remoto.process.run(conn, cmd) + pkg_managers.zypper_remove(conn, packages)