From f706324286abe99e13524f272fb792287d53ced4 Mon Sep 17 00:00:00 2001 From: Sean Feole Date: Tue, 22 Nov 2016 15:59:39 -0500 Subject: [PATCH] added juju.controller.destroy_models() --- juju/controller.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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. -- 2.25.1