]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
missing refactoring call to hosts.get 109/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Thu, 17 Oct 2013 19:50:16 +0000 (15:50 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Thu, 17 Oct 2013 19:50:16 +0000 (15:50 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/mon.py

index f57d39ffceefd494fffa276463380d723a5f0e07..1f1138b9f64b28bfc32c59b532eab284e8850480 100644 (file)
@@ -134,7 +134,7 @@ def mon_create(args):
         try:
             # TODO add_bootstrap_peer_hint
             LOG.debug('detecting platform for host %s ...', name)
-            distro = hosts.get(host)
+            distro = hosts.get(host, username=args.username)
             LOG.info('distro info: %s %s %s', distro.name, distro.release, distro.codename)
             rlogger = logging.getLogger(name)
 
@@ -250,7 +250,7 @@ def mon_destroy(args):
         try:
             LOG.debug('Removing mon from %s', name)
 
-            distro = hosts.get(host)
+            distro = hosts.get(host, username=args.username)
             hostname = distro.conn.remote_module.shortname()
 
             destroy_mon(