From a46a011e5de69144f3290f112dd22813ea6c3e55 Mon Sep 17 00:00:00 2001 From: Sean Feole Date: Thu, 17 Nov 2016 15:53:44 -0500 Subject: [PATCH] Added juju.model.connect_model() --- juju/model.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/juju/model.py b/juju/model.py index 5ca7422..9d14f82 100644 --- a/juju/model.py +++ b/juju/model.py @@ -367,6 +367,15 @@ class Model(object): self._watch() await self._watch_received.wait() + async def connect_model(self, arg): + """Connect to a specific Juju model. + :param arg: : + + """ + self.connection = await connection.Connection.connect_model(arg) + self._watch() + await self._watch_received.wait() + async def disconnect(self): """Shut down the watcher task and close websockets. -- 2.25.1