projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 733 fixed
[osm/N2VC.git]
/
modules
/
libjuju
/
examples
/
config.py
diff --git
a/modules/libjuju/examples/config.py
b/modules/libjuju/examples/config.py
index
bad5b6d
..
c7580f6
100644
(file)
--- a/
modules/libjuju/examples/config.py
+++ b/
modules/libjuju/examples/config.py
@@
-6,7
+6,6
@@
This example:
3. Deploys a charm and prints its config and constraints
"""
3. Deploys a charm and prints its config and constraints
"""
-import asyncio
import logging
from juju.model import Model
import logging
from juju.model import Model
@@
-19,8
+18,8
@@
MB = 1
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)
ubuntu_app = await model.deploy(
'mysql',
ubuntu_app = await model.deploy(
'mysql',
@@
-47,7
+46,7
@@
async def main():
await model.disconnect()
await model.disconnect()
-
+
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG)
ws_logger = logging.getLogger('websockets.protocol')
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG)
ws_logger = logging.getLogger('websockets.protocol')