Skip to content

Commit

Permalink
get_config: fix KeyError url
Browse files Browse the repository at this point in the history
File "napalm-aruba-cx/napalm_aoscx/aoscx.py", line 625, in get_config
  config_dict['running'] = self._get_json_configuration("running-config")
File "napalm-aruba-cx/napalm_aoscx/aoscx.py", line 904, in _get_json_configuration
  target_url = kwargs["url"] + "fullconfigs/{}".format(checkpoint)
KeyError: 'url'

issue also reported on napalm-automation-community#5

Signed-off-by: Alexis La Goutte <[email protected]>
  • Loading branch information
alagoutte committed Jan 7, 2021
1 parent 7a00d34 commit 12560ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napalm_aoscx/aoscx.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,9 +608,9 @@ def get_config(self, retrieve="all", full=False):
"candidate": ""
}
if retrieve in ["running", "all"]:
config_dict['running'] = self._get_json_configuration("running-config")
config_dict['running'] = self._get_json_configuration("running-config", **self.session_info)
if retrieve in ["startup", "all"]:
config_dict['startup'] = self._get_json_configuration("startup-config")
config_dict['startup'] = self._get_json_configuration("startup-config", **self.session_info)
if retrieve in ["candidate", "all"]:
config_dict['candidate'] = self.candidate_config

Expand Down

0 comments on commit 12560ca

Please sign in to comment.