Commit Graph

7 Commits

Author SHA1 Message Date
Liam Young
7746c2261f Ensure new model is disconnected from
When Controller.add_model is called it returns a model, this model
should be disconnected from otherwise stack-traces like the one
reported in issue #135 occur.
2018-10-03 12:16:57 +01:00
David Ames
86188d2843 Fix typo 2018-09-19 13:47:10 +02:00
David Ames
f6b368db44 Update the juju models cache on model add
Python-libjuju does not update the local cache of juju models on model
create. If no juju switch command or juju models command is run juju
will report model not found.

Issue is being tracked by
https://github.com/juju/python-libjuju/issues/267

Add a juju models command to update the local cache and make the new
model available to the juju binary.
2018-09-19 13:44:23 +02:00
Nicolas Pochet
193e2657ff Add copyright header everywhere.
Also make flake8 happy in setup.py by adding docstrings.
2018-08-09 11:55:13 +02:00
Liam Young
30c8ad4c97 Fix remaining docstrings in zaza/*
Fix remaining docstrings in zaza/*, the unit_tests/* still need
work.
2018-06-18 13:12:43 +01:00
Liam Young
0aa7c61719 Remove duplicate functions for add/remove model
Recently functions were added to zaza.model for adding and removing
models. These duplicated existing functions in zaza.controller.
Given these functions act against the controller, zaza.controller
feels like the correct location. In addition the implementations in
zaza.controller correctly handle disconnects which the new ones
did not.
This PR removes the duplicates and points any existing references
from zaza.model to zaza.controller. Finally, docstrings were added
and documentation links.
2018-06-13 09:49:33 +01:00
David Ames
ea120ee0a5 Add controller module
The controller module allows us to run commands against the controller
including listing all models and getting the cloud configuration name.
2018-05-14 10:49:49 -07:00