Refactored login code to better handle redirects (#116)
authorCory Johns <johnsca@gmail.com>
Wed, 26 Apr 2017 22:23:13 +0000 (18:23 -0400)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2017 22:23:13 +0000 (18:23 -0400)
commit7c2a530853c95b8a3518f6db0870f94858f87c27
tree7baa61a6b601dc12099934c55e787726633f6af3
parentadc6e51ff00d513cd68d4a046e87b25adf2021be
Refactored login code to better handle redirects (#116)

Fixes #114: build_facades not handling discharge-required results
Fixes #115: JAAS update broke controller connections

Also ensures that the receiver and pinger tasks get cleaned up properly
when a connection is closed.

Also makes the model AllWatcher share the model connection to reduce the
number of open connections required.  The independent connection is no
longer needed since the websocket responses are properly paired with the
requests.
examples/add_model.py
juju/client/connection.py
juju/errors.py
juju/model.py
tests/integration/test_controller.py