From: Sean Feole Date: Tue, 22 Nov 2016 20:59:39 +0000 (-0500) Subject: added juju.controller.destroy_models() X-Git-Tag: 0.1.0~38^2~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=f706324286abe99e13524f272fb792287d53ced4;p=osm%2FN2VC.git added juju.controller.destroy_models() --- diff --git a/juju/controller.py b/juju/controller.py index ca871a1..2d8b4fa 100644 --- a/juju/controller.py +++ b/juju/controller.py @@ -63,6 +63,20 @@ class Controller(object): return model + async def destroy_models(self, *args): + + """Destroy a model to this controller. + + :param str : model- + + """ + model_facade = client.ModelManagerFacade() + model_facade.connect(self.connection) + + for arg in args: + log.debug('Destroying Model %s', arg) + await model_facade.DestroyModels([client.Entity(arg)]) + def add_user(self, username, display_name=None, acl=None, models=None): """Add a user to this controller.