From ea9fda9c60ff9d0abfa8eee7ecc9191e7197db07 Mon Sep 17 00:00:00 2001 From: Jed Reynolds Date: Wed, 2 Feb 2022 16:46:17 -0800 Subject: [PATCH] LFUtils.py: formats debug output json for pull port listing Signed-off-by: Jed Reynolds --- py-json/LANforge/LFUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-json/LANforge/LFUtils.py b/py-json/LANforge/LFUtils.py index f22f15d0..dcbf91f1 100644 --- a/py-json/LANforge/LFUtils.py +++ b/py-json/LANforge/LFUtils.py @@ -717,7 +717,7 @@ def wait_until_ports_appear(base_url="http://localhost:8080", port_list=(), debu port_list = [port_list] if debug: current_ports = LFRequest.LFRequest(base_url, '/ports', debug_=debug).get_as_json() - logger.debug("LFUtils:wait_until_ports_appear, full port listing: %s" % current_ports) + logger.debug("LFUtils:wait_until_ports_appear, full port listing: %s" % pprint.pformat(current_ports)) for port in current_ports['interfaces']: if list(port.values())[0]['phantom']: logger.debug("LFUtils:waittimeout_until_ports_appear: %s is phantom" % list(port.values())[0]['alias'])