]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commit
[RM-12259] Pass full distro module to uninstall()
authorTravis Rhoden <trhoden@redhat.com>
Wed, 15 Jul 2015 21:28:12 +0000 (21:28 +0000)
committerTravis Rhoden <trhoden@redhat.com>
Thu, 16 Jul 2015 01:30:36 +0000 (01:30 +0000)
commit5468bf93ed54bd8feaaaa4908486b64efdf59975
tree93b7822b85ba1d1e9998cd064c9c3f664c4ff9e2
parent7716c09afd8c6b9d5033a5c1bfae58d3c663d715
[RM-12259] Pass full distro module to uninstall()

Not having the distro modules be objects shows it's limitations
here, as there is no easy way for a module to reference itself.
Technically you could reference itself by name (e.g. have the
fedora module use ceph_deploy.hosts.fedora.packager), but that
is pretty ugly and continues to rely on global vars.

For now, just pass the full distro module instead of distro.conn
so that we can easily access distro.* attributes.

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
ceph_deploy/hosts/centos/uninstall.py
ceph_deploy/hosts/debian/uninstall.py
ceph_deploy/hosts/fedora/uninstall.py
ceph_deploy/hosts/rhel/uninstall.py
ceph_deploy/hosts/suse/uninstall.py
ceph_deploy/install.py