]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
Fix bug in mon_destory 97/head
authorAndrew Woodward <awoodward@mirantis.com>
Wed, 2 Oct 2013 21:01:19 +0000 (14:01 -0700)
committerAndrew Woodward <awoodward@mirantis.com>
Wed, 2 Oct 2013 21:01:19 +0000 (14:01 -0700)
mon_destroy was using a local socket and was not resolving the remote
 hostname correctly

Signed-off-by: Andrew Woodward <awoodward@mirantis.com>
ceph_deploy/mon.py

index 6e865930e8334ba6350ae2db2ad8767a842eb135..b82b9df96d8919bd918dd5e6bb467276f1642aa5 100644 (file)
@@ -270,7 +270,7 @@ def mon_destroy(args):
 
             # TODO username
             sudo = args.pushy(get_transport(host))
-            hostname = remote_shortname(socket)
+            hostname = remote_shortname(sudo.modules.socket)
 
             destroy_mon_r = sudo.compile(destroy_mon)
             destroy_mon_r(