realm.wait_until_endps_appear: check to make sure there is a port in the endpoints list

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2022-01-25 15:09:07 -08:00
committed by shivam
parent d131abe916
commit 629069cfad

View File

@@ -400,7 +400,8 @@ class Realm(LFCliBase):
if endp_list and ("items" not in endp_list):
if 'endpoint' in endp_list.keys():
for endpoint in list(endp_list['endpoint']):
found_endps.add(endpoint[0])
if len(endpoint) > 1:
found_endps.add(endpoint[0])
else:
print(
"non-fatal exception endp_list = list(endp_list['endpoint'] did not exist, will wait some more")