From 743b4cc3c7a78547be02d2b8bb20b46eda279697 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 17 Sep 2018 01:41:20 -0400 Subject: [PATCH] Print error when we can't find a target HV --- cli-client/pvc.py | 4 ++++ 1 file changed, 4 insertions(+) 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