From: simonklb Date: Thu, 11 May 2017 16:02:03 +0000 (+0200) Subject: Strip local:-prefix from local charm urls (#121) X-Git-Tag: 0.4.3~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=789ae9e7085f8fa16a8320cc318494d4bff75e43;p=osm%2FN2VC.git Strip local:-prefix from local charm urls (#121) --- diff --git a/juju/model.py b/juju/model.py index e024c65..e56ad66 100644 --- a/juju/model.py +++ b/juju/model.py @@ -1000,7 +1000,7 @@ class Model(object): os.path.isdir(entity_url) ) if is_local: - entity_id = entity_url + entity_id = entity_url.replace('local:', '') else: entity = await self.charmstore.entity(entity_url) entity_id = entity['Id']