diff --git a/cli-client/pvc.py b/cli-client/pvc.py index 188b16d2..f271a102 100755 --- a/cli-client/pvc.py +++ b/cli-client/pvc.py @@ -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