From 3158303cfdea889f9c1d07e2fa84b2109fc00775 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Fri, 12 Jun 2015 14:50:21 +0200 Subject: [PATCH] suse/uninstall: use the zypper remove helper Signed-off-by: David Disseldorp --- ceph_deploy/hosts/suse/uninstall.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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) -- 2.47.3