Fixed the bug in pre_cleanup method

Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
This commit is contained in:
jitendracandela
2023-10-12 14:49:38 +05:30
parent 4f308830d6
commit 9e900b8cd1

View File

@@ -772,7 +772,7 @@ class lf_libs:
exist_sta = []
for u in self.json_get("/port/?fields=port+type,alias")['interfaces']:
if list(u.values())[0]['port type'] not in ['Ethernet', 'WIFI-Radio', 'NA']:
exist_sta.append(list(u.values())[0]['alias'])
exist_sta.append(list(u.keys())[0])
if len(exist_sta) == 0:
logging.info("Existing stations are not available")
else: