From 695fa8b9b11243d6bd31ded4a7f2aee318f399a2 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Mon, 6 Dec 2021 16:40:46 -0800 Subject: [PATCH] l3_cxprofile: No need to make it self.data Signed-off-by: Matthew Stidham --- py-json/l3_cxprofile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py-json/l3_cxprofile.py b/py-json/l3_cxprofile.py index 2a9ccef1..00a218dc 100644 --- a/py-json/l3_cxprofile.py +++ b/py-json/l3_cxprofile.py @@ -76,10 +76,10 @@ class L3CXProfile(LFCliBase): return self.created_cx.keys() def get_cx_report(self): - self.data = {} + data = dict() for cx_name in self.get_cx_names(): - self.data[cx_name] = self.json_get("/cx/" + cx_name).get(cx_name) - return self.data + data[cx_name] = self.json_get("/cx/" + cx_name).get(cx_name) + return data def __get_rx_values(self): cx_list = self.json_get("endp?fields=name,rx+bytes")