|
14 | 14 | from .client import client |
15 | 15 | from .constraints import parse as parse_constraints, parse_storage_constraint, parse_device_constraint |
16 | 16 | from .errors import JujuError |
17 | | -from . import utils, jasyncio, charmhub |
| 17 | +from . import utils, jasyncio |
18 | 18 | from .origin import Channel |
19 | 19 | from .url import Schema, URL |
20 | 20 |
|
@@ -148,8 +148,7 @@ async def _handle_local_charms(self, bundle, bundle_dir): |
148 | 148 | ]) |
149 | 149 |
|
150 | 150 | # Update the 'charm:' entry for each app with the new 'local:' url. |
151 | | - for app_name, charm_url, (charm_dir, series) in zip(apps, |
152 | | - charm_urls, args): |
| 151 | + for app_name, charm_url, (charm_dir, series) in zip(apps, charm_urls, args): |
153 | 152 | metadata = utils.get_local_charm_metadata(charm_dir) |
154 | 153 | resources = await self.model.add_local_resources( |
155 | 154 | app_name, |
@@ -372,7 +371,6 @@ async def _resolve_charms(self): |
372 | 371 | risk=risk, |
373 | 372 | track=track) |
374 | 373 | charm_url, charm_origin, _ = await self.model._resolve_charm(charm_url, origin) |
375 | | - # import pdb;pdb.set_trace() |
376 | 374 | spec['charm'] = str(charm_url) |
377 | 375 | else: |
378 | 376 | results = await self.model.charmstore.entity(str(charm_url)) |
@@ -638,7 +636,7 @@ async def run(self, context): |
638 | 636 | self.application, charm, origin, overrides=self.resources) |
639 | 637 | else: |
640 | 638 | resources = context.bundle.get("applications", {}).get(self.application, {}).get("resources", {}) |
641 | | - import pdb;pdb.set_trace() |
| 639 | + |
642 | 640 | await context.model._deploy( |
643 | 641 | charm_url=charm, |
644 | 642 | application=self.application, |
@@ -732,9 +730,6 @@ async def run(self, context): |
732 | 730 | ch = None |
733 | 731 | identifier = None |
734 | 732 | if Schema.LOCAL.matches(url.schema): |
735 | | - # origin = client.CharmOrigin(source="local", risk="stable") |
736 | | - import pdb;pdb.set_trace() |
737 | | - # context.origins[self.charm] = {str(None): origin} |
738 | 733 | return self.charm |
739 | 734 |
|
740 | 735 | if Schema.CHARM_STORE.matches(url.schema): |
|
0 commit comments