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
/
future.py
diff --git
a/modules/libjuju/examples/future.py
b/modules/libjuju/examples/future.py
index
c93981a
..
5e974cf
100644
(file)
--- a/
modules/libjuju/examples/future.py
+++ b/
modules/libjuju/examples/future.py
@@
-2,7
+2,6
@@
This example doesn't work - it demonstrates features that don't exist yet.
"""
This example doesn't work - it demonstrates features that don't exist yet.
"""
-import asyncio
import logging
from juju.model import Model
import logging
from juju.model import Model
@@
-11,8
+10,8
@@
from juju import loop
async def main():
model = Model()
async def main():
model = Model()
+ # connect to current model with current user, per Juju CLI
await model.connect()
await model.connect()
- await model.reset(force=True)
goal_state = Model.from_yaml('bundle-like-thing')
ubuntu_app = await model.deploy(
goal_state = Model.from_yaml('bundle-like-thing')
ubuntu_app = await model.deploy(