Commit 9617dfbd authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Common - Tools - RestConf - Client:

- Fixed discovery of base URL from host-meta
parent 8a0b21da
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -61,6 +61,10 @@ class RestConfClient(RestApiClient):
        self._base_url = str(href).replace('//', '/')
        if self._restconf_version is not None:
            self._base_url += '/{:s}'.format(self._restconf_version)
        if self._base_url.endswith('/data/'):
            self._base_url = self._base_url.split('/data/')[0]
        elif self._base_url.endswith('/data'):
            self._base_url = self._base_url.split('/data')[0]


    def get(