X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=examples%2Flocalcharm.py;h=9abfe419761ffa78fa4e0c266cc5d378ff67a04d;hb=afb309d17dadc062017ee3d6425491193181138e;hp=bc92914a94173de30cd6e33f35738a30dd59d4c2;hpb=b7e54690262eb1021274aabb8e93188e49508150;p=osm%2FN2VC.git diff --git a/examples/localcharm.py b/examples/localcharm.py index bc92914..9abfe41 100644 --- a/examples/localcharm.py +++ b/examples/localcharm.py @@ -16,15 +16,11 @@ async def run(): 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( - charm_url, + '/home/tvansteenburgh/src/charms/ubuntu', application_name='ubuntu', + series='trusty', ) await model.disconnect()