Add cleanup of package "software-properties-common"

With commit d126b3f92e we added the pgk "software-properties-common"
to allow the installation of the new repositories.
This is a follow up patch which implements the cleanup of this package
in case the devstack-plugin is used outside of a OpenStack testing
job (for example a test VM of developer who doesn't throw away the
VM immediately).

Change-Id: I474341bbba567c8edb42b2b1bf760d09dfb9ddc5
This commit is contained in:
Markus Zoeller 2016-04-01 15:51:05 +02:00
parent d126b3f92e
commit 7ade6e5f05
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ function shutdown_libvirt_ubuntu {
# Make sure we don't leave an almost certainly broken libvirt-python
# installed
sudo pip uninstall -y libvirt-python
# Remove the package we installed in "pre_install_libvirt_ubuntu"
sudo apt-get purge -y software-properties-common
}