From: Sean Feole Date: Thu, 17 Nov 2016 20:53:44 +0000 (-0500) Subject: Added juju.model.connect_model() X-Git-Tag: 0.1.0~49^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=a46a011e5de69144f3290f112dd22813ea6c3e55;p=osm%2FN2VC.git Added juju.model.connect_model() --- 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.