]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Use new vm_host attribute
authorZack Cerza <zack.cerza@inktank.com>
Fri, 22 Aug 2014 20:14:15 +0000 (14:14 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Mon, 25 Aug 2014 17:14:39 +0000 (11:14 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/orchestra/remote.py

index 000d30da6b909b7574f0625125b69ae30e323ce5..0c147e9a8ac985237796d1d446137d277b9778b3 100644 (file)
@@ -431,7 +431,8 @@ class VirtualConsole():
         self.shortname = getShortName(name)
         status_info = ls.get_status(self.shortname)
         try:
-            phys_host = status_info['vpshost']
+            if status_info.get('is_vm', False):
+                phys_host = status_info['vm_host']['name'].split('.')[0]
         except TypeError:
             return
         self.connection = libvirt.open(phys_host)