This patch makes the watcher use the hvparams from ssconf
to retrieve the list of instances from the hypervisors.
Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
"""
hyp_list = ssconf.SimpleStore().GetHypervisorList()
+ hvparams = ssconf.SimpleStore().GetHvparams()
results = []
for hv_name in hyp_list:
try:
hv = hypervisor.GetHypervisor(hv_name)
- ilist = hv.ListInstances()
+ ilist = hv.ListInstances(hvparams=hvparams)
results.extend([(iname, hv_name) for iname in ilist])
except: # pylint: disable=W0702
logging.error("Error while listing instances for hypervisor %s",