]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
nuke: Use install_task.get_package_list()
authorZack Cerza <zack@redhat.com>
Tue, 8 Mar 2016 22:29:00 +0000 (15:29 -0700)
committerZack Cerza <zack@redhat.com>
Wed, 9 Mar 2016 22:22:30 +0000 (15:22 -0700)
(Properly named task.install.get_package_list())

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/nuke.py

index ca5e6a5052a173b6358a23d6fd3e4f785046b462..c6e47b3e92b1600cab73936a314e6078127f9a70 100644 (file)
@@ -285,14 +285,23 @@ def remove_yum_timedhosts(ctx):
 
 def remove_installed_packages(ctx):
     dpkg_configure(ctx)
-    conf = {'project': 'ceph'}
+    conf = dict(
+        project='ceph',
+        debuginfo='true',
+    )
+    packages = install_task.get_package_list(ctx, conf)
+    debs = packages['deb'] + \
+        ['salt-common', 'salt-minion', 'calamari-server', 'python-rados']
+    rpms = packages['rpm'] + \
+        ['salt-common', 'salt-minion', 'calamari-server']
     install_task.remove_packages(
         ctx,
         conf,
-        {"deb": install_task.PACKAGES['ceph']['deb'] +
-         ['salt-common', 'salt-minion', 'calamari-server', 'python-rados'],
-         "rpm": install_task.PACKAGES['ceph']['rpm'] +
-         ['salt-common', 'salt-minion', 'calamari-server']})
+        dict(
+            deb=debs,
+            rpm=rpms,
+        )
+    )
     install_task.remove_sources(ctx, conf)
     install_task.purge_data(ctx)