projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dropped in fixes for juju ssh.
[osm/N2VC.git]
/
examples
/
localcharm.py
diff --git
a/examples/localcharm.py
b/examples/localcharm.py
index
bc92914
..
9abfe41
100644
(file)
--- a/
examples/localcharm.py
+++ b/
examples/localcharm.py
@@
-16,15
+16,11
@@
async def run():
model = Model()
await model.connect_current()
model = Model()
await model.connect_current()
- # Upload local charm to the model.
- # The returned 'local:' url can be used to deploy the charm.
- charm_url = await model.add_local_charm_dir(
- '/home/tvansteenburgh/src/charms/ubuntu', 'trusty')
-
- # Deploy the charm using the 'local:' charm.
+ # Deploy a local charm using a path to the charm directory
await model.deploy(
await model.deploy(
-
charm_url
,
+
'/home/tvansteenburgh/src/charms/ubuntu'
,
application_name='ubuntu',
application_name='ubuntu',
+ series='trusty',
)
await model.disconnect()
)
await model.disconnect()