projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug 628 - Better handling of model management
[osm/N2VC.git]
/
modules
/
libjuju
/
examples
/
unitrun.py
diff --git
a/modules/libjuju/examples/unitrun.py
b/modules/libjuju/examples/unitrun.py
index
3dfacd6
..
805f0ae
100644
(file)
--- a/
modules/libjuju/examples/unitrun.py
+++ b/
modules/libjuju/examples/unitrun.py
@@
-7,7
+7,6
@@
This example:
4. Waits for the action results to come back, then exits.
"""
4. Waits for the action results to come back, then exits.
"""
-import asyncio
import logging
from juju.model import Model
import logging
from juju.model import Model
@@
-24,8
+23,8
@@
async def run_command(unit):
async def main():
model = Model()
async def main():
model = Model()
- await model.connect_current()
- await model.
reset(force=True
)
+ # connect to current model with current user, per Juju CLI
+ await model.
connect(
)
app = await model.deploy(
'ubuntu-0',
app = await model.deploy(
'ubuntu-0',