From 629069cfadd89be0355ead497f77fdca0cf55ef7 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Tue, 25 Jan 2022 15:09:07 -0800 Subject: [PATCH] realm.wait_until_endps_appear: check to make sure there is a port in the endpoints list Signed-off-by: Matthew Stidham --- py-json/realm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/py-json/realm.py b/py-json/realm.py index a2a1e5b1..de02f564 100755 --- a/py-json/realm.py +++ b/py-json/realm.py @@ -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")