projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Workaround for bug 816
[osm/N2VC.git]
/
modules
/
libjuju
/
examples
/
controller.py
diff --git
a/modules/libjuju/examples/controller.py
b/modules/libjuju/examples/controller.py
index
3f029ab
..
b61a6f6
100644
(file)
--- a/
modules/libjuju/examples/controller.py
+++ b/
modules/libjuju/examples/controller.py
@@
-8,7
+8,6
@@
This example:
5. Destroys the model
"""
5. Destroys the model
"""
-import asyncio
import logging
from juju.controller import Controller
import logging
from juju.controller import Controller
@@
-17,6
+16,7
@@
from juju import loop
async def main():
controller = Controller()
async def main():
controller = Controller()
+ # connect to current controller with current user, per Juju CLI
await controller.connect()
model = await controller.add_model(
'my-test-model',
await controller.connect()
model = await controller.add_model(
'my-test-model',