From 12560ca9434db2a445b75d2a2b22ca2ff2889c0e Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Thu, 7 Jan 2021 21:08:40 +0100 Subject: [PATCH] get_config: fix KeyError url 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 #5 Signed-off-by: Alexis La Goutte --- napalm_aoscx/aoscx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/napalm_aoscx/aoscx.py b/napalm_aoscx/aoscx.py index bf096f7..a365d76 100644 --- a/napalm_aoscx/aoscx.py +++ b/napalm_aoscx/aoscx.py @@ -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