mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-05 21:28:03 +00:00
Correctly get names for columns when they are user defined
This commit is contained in:
committed by
Jed Reynolds
parent
51ea187b2f
commit
e7e3360dea
@@ -1174,6 +1174,7 @@ class L3CXProfile(BaseProfile):
|
|||||||
fields=None
|
fields=None
|
||||||
if col_names is not None and len(col_names) > 0:
|
if col_names is not None and len(col_names) > 0:
|
||||||
fields = ",".join(col_names)
|
fields = ",".join(col_names)
|
||||||
|
header_row=col_names
|
||||||
else:
|
else:
|
||||||
header_row=list((list(self.json_get("/endp/all")['endpoint'][0].values())[0].keys()))
|
header_row=list((list(self.json_get("/endp/all")['endpoint'][0].values())[0].keys()))
|
||||||
print(fields)
|
print(fields)
|
||||||
|
|||||||
Reference in New Issue
Block a user