projects
/
osm
/
N2VC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b2df92
)
Added juju.model.connect_model()
author
Sean Feole
<sean.feole@canonical.com>
Thu, 17 Nov 2016 20:53:44 +0000
(15:53 -0500)
committer
Sean Feole
<sean.feole@canonical.com>
Thu, 17 Nov 2016 20:53:44 +0000
(15:53 -0500)
juju/model.py
patch
|
blob
|
history
diff --git
a/juju/model.py
b/juju/model.py
index
5ca7422
..
9d14f82
100644
(file)
--- 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: <controller>:<user/model>
+
+ """
+ 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.