Strip local:-prefix from local charm urls (#121)
authorsimonklb <simonkollberg@gmail.com>
Thu, 11 May 2017 16:02:03 +0000 (18:02 +0200)
committerPete Vander Giessen <petevg@gmail.com>
Thu, 11 May 2017 16:02:03 +0000 (12:02 -0400)
juju/model.py

index e024c65..e56ad66 100644 (file)
@@ -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']