From 789ae9e7085f8fa16a8320cc318494d4bff75e43 Mon Sep 17 00:00:00 2001 From: simonklb Date: Thu, 11 May 2017 18:02:03 +0200 Subject: [PATCH] Strip local:-prefix from local charm urls (#121) --- juju/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] -- 2.25.1