Fix for verifyHostLocation function
Change-Id: I67e08383e2e228956dfdb8126fee87036fb6ee3e
diff --git a/TestON/drivers/common/cli/onosclidriver.py b/TestON/drivers/common/cli/onosclidriver.py
index d806da6..439ba80 100755
--- a/TestON/drivers/common/cli/onosclidriver.py
+++ b/TestON/drivers/common/cli/onosclidriver.py
@@ -1173,7 +1173,7 @@
for host in hosts:
if hostIp in host[ "ipAddresses" ]:
targetHost = host
- assert host, "Not able to find host with IP {}".format( hostIp )
+ assert targetHost, "Not able to find host with IP {}".format( hostIp )
result = main.TRUE
locationsDiscovered = [ loc[ "elementId" ] + "/" + loc[ "port" ] for loc in targetHost[ "locations" ] ]
for loc in locations: