Loading src/common/tools/rest_conf/client/RestConfClient.py +3 −3 Original line number Diff line number Diff line Loading @@ -33,10 +33,8 @@ class RestConfClient(RestApiClient): timeout=timeout, verify_certs=verify_certs, allow_redirects=allow_redirects, logger=logger ) self._restconf_version = restconf_version self._discover_base_url() if restconf_version is not None: self._base_url += '/{:s}'.format(restconf_version) def _discover_base_url(self) -> None: Loading @@ -61,6 +59,8 @@ class RestConfClient(RestApiClient): if not isinstance(href, str): raise AttributeError('Attribute "links[0].href" must be a str') self._base_url = str(href).replace('//', '/') if self._restconf_version is not None: self._base_url += '/{:s}'.format(self._restconf_version) def get( Loading Loading
src/common/tools/rest_conf/client/RestConfClient.py +3 −3 Original line number Diff line number Diff line Loading @@ -33,10 +33,8 @@ class RestConfClient(RestApiClient): timeout=timeout, verify_certs=verify_certs, allow_redirects=allow_redirects, logger=logger ) self._restconf_version = restconf_version self._discover_base_url() if restconf_version is not None: self._base_url += '/{:s}'.format(restconf_version) def _discover_base_url(self) -> None: Loading @@ -61,6 +59,8 @@ class RestConfClient(RestApiClient): if not isinstance(href, str): raise AttributeError('Attribute "links[0].href" must be a str') self._base_url = str(href).replace('//', '/') if self._restconf_version is not None: self._base_url += '/{:s}'.format(self._restconf_version) def get( Loading