[ONOS-6623]: Fix parsing of hosts json

Change-Id: I7e612bb9a1b8e5e63894b2698ab40db653ad6473
diff --git a/TestON/tests/HA/HAsanity/HAsanity.py b/TestON/tests/HA/HAsanity/HAsanity.py
index 52f0b49..d30bdbc 100644
--- a/TestON/tests/HA/HAsanity/HAsanity.py
+++ b/TestON/tests/HA/HAsanity/HAsanity.py
@@ -2352,7 +2352,7 @@
                                 mac = host.get( 'mac' )
                                 assert mac, "mac field could not be found for this host object"
 
-                                location = host.get( 'location' )
+                                location = host.get( 'locations' )[ 0 ]
                                 assert location, "location field could not be found for this host object"
 
                                 # Trim the protocol identifier off deviceId