napalm-automation-community/napalm-mos

Loading config from file broken

Closed this issue · 1 comments

bewing commented
  File "/.pyenv/versions/3.11.5/lib/python3.11/site-packages/napalm_mos/mos.py", line 287, in load_merge_candidate
    self._load_config(filename=filename, config=config, replace=False)
  File "/.pyenv/versions/3.11.5/lib/python3.11/site-packages/napalm_mos/mos.py", line 256, in _load_config
    for line in lines:

                ^^^^^
UnboundLocalError: cannot access local variable 'lines' where it is not associated with a value
bewing commented

Most probably caused by this line