pylint: fix 'used before assignment'

Signed-off-by: Tucker Polomik <t.polomik@cablelabs.com>
This commit is contained in:
Tucker Polomik
2024-09-05 12:13:57 -06:00
parent 0a01ab9c13
commit 71dc400f1e
2 changed files with 2 additions and 0 deletions

View File

@@ -707,6 +707,7 @@ def update_transition_dropdown_menus(_, _type):
"""
placeholder = 'Select a new BSSID'
avail_stations = [sta.get_mac() for sta in get_topology().get_stations()]
avail_targets = []
if _type is None or _type == 'Client Steering':
avail_targets = [bss.get_bssid() for bss in get_topology().get_bsses()]
elif _type == 'VBSS':

View File

@@ -36,6 +36,7 @@ def marshall_nbapi_blob(nbapi_json) -> Topology:
agent_dict: Dict[str, Agent] = {}
iface_dict: Dict[str, Interface] = {}
controller_id: str = ''
for entry in nbapi_json:
path = entry['path']