From f041e432b6b7ca8c8675c48b8a89c5f1d9a82623 Mon Sep 17 00:00:00 2001 From: Yichen Wang Date: Thu, 10 Mar 2016 15:42:46 -0800 Subject: [PATCH] Fix the hypervisor parameter issue Change-Id: I43e180374b81d4952c8ecedf321b2330df08553a --- vmtp/compute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmtp/compute.py b/vmtp/compute.py index 615eb8b..9e99a7a 100644 --- a/vmtp/compute.py +++ b/vmtp/compute.py @@ -279,7 +279,7 @@ class Compute(object): zone = az_host_list[0] host = az_host_list[1] for hyp in host_list: - if hyp.host_name == host: + if hyp.host == host: if hyp.zone == zone: # matches return az_host @@ -338,7 +338,7 @@ class Compute(object): # pick first 2 matches at most if len(avail_list) == 2: break - print 'Using hypervisors:' + ', '.join(avail_list) + print 'Using hypervisors ' + ', '.join(avail_list) else: for host in host_list: # this host must be a compute node