Fixed detecting controller for non-superuser
authorCory Johns <johnsca@gmail.com>
Thu, 22 Dec 2016 16:42:29 +0000 (11:42 -0500)
committerCory Johns <johnsca@gmail.com>
Thu, 22 Dec 2016 16:45:20 +0000 (11:45 -0500)
commitfe19bc72a387b03fb157c873313ecac58b65e338
tree77098d9b350adbdf5872424cf3ed4c081da65b83
parent110c4a8626d23592262f6c1c8131b83962e21f24
Fixed detecting controller for non-superuser

The `show-controller` command can only be used by superusers, so usually
fails on shared controllers.

https://bugs.launchpad.net/juju/+bug/1652106
juju/client/connection.py
juju/errors.py