X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=juju%2Fmodel.py;h=9d14f82bb0b76775d6471140b05cdaf422ee7e43;hb=a46a011e5de69144f3290f112dd22813ea6c3e55;hp=5ca74221c240d17dd7322cab572ed09719dd7aef;hpb=1b2df922f29c611671f1fb05164016d23a55dfc8;p=osm%2FN2VC.git 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.