Print error when we can't find a target HV

This commit is contained in:
Joshua Boniface 2018-09-17 01:41:20 -04:00
parent c3d37701e7
commit 743b4cc3c7
1 changed files with 4 additions and 0 deletions

View File

@ -445,6 +445,10 @@ def findTargetHypervisorMem(zk_conn, dom_uuid):
most_allocfree = allocfree
target_hypervisor = hypervisor
if target_hypervisor == None:
click.echo('ERROR: Could not find a suitable target hypervisor!')
exit(1)
return target_hypervisor
# via load average