diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-06-18 20:22:09 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-06-18 20:22:09 +0300 |
commit | 5cff84723324b1fc01ea0962c0412bf7dc6027b4 (patch) | |
tree | 017d059127233d26f3984198ff6d0cb0471b7a4d /ick2 | |
parent | e9839fa9e91155f20ffdb48bc6b8d3d672cb8061 (diff) | |
download | ick2-5cff84723324b1fc01ea0962c0412bf7dc6027b4.tar.gz |
Change: look up credentials using controller URL (fallback auth url)
Diffstat (limited to 'ick2')
-rw-r--r-- | ick2/client.py | 3 | ||||
-rw-r--r-- | ick2/client_tests.py | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ick2/client.py b/ick2/client.py index 2b1318c..2d54bc8 100644 --- a/ick2/client.py +++ b/ick2/client.py @@ -150,6 +150,9 @@ class ControllerClient: def set_controller_url(self, url): self._url = url + def get_controller_url(self): # pragma: no cover + return self._url + def set_token(self, token): self._api.set_token(token) diff --git a/ick2/client_tests.py b/ick2/client_tests.py index f164e6a..adba2dc 100644 --- a/ick2/client_tests.py +++ b/ick2/client_tests.py @@ -359,6 +359,7 @@ class FakeResponse: 'Content-Type': content_type, } self.content = body + self.text = body @property def ok(self): |