Print error when we can't find a target HV
This commit is contained in:
parent
c3d37701e7
commit
743b4cc3c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue