Skip to content

Commit aec5669

Browse files
committed
Cleanup and lint fixes
1 parent e6373ab commit aec5669

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

juju/bundle.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from .client import client
1515
from .constraints import parse as parse_constraints, parse_storage_constraint, parse_device_constraint
1616
from .errors import JujuError
17-
from . import utils, jasyncio, charmhub
17+
from . import utils, jasyncio
1818
from .origin import Channel
1919
from .url import Schema, URL
2020

@@ -148,8 +148,7 @@ async def _handle_local_charms(self, bundle, bundle_dir):
148148
])
149149

150150
# 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):
153152
metadata = utils.get_local_charm_metadata(charm_dir)
154153
resources = await self.model.add_local_resources(
155154
app_name,
@@ -372,7 +371,6 @@ async def _resolve_charms(self):
372371
risk=risk,
373372
track=track)
374373
charm_url, charm_origin, _ = await self.model._resolve_charm(charm_url, origin)
375-
# import pdb;pdb.set_trace()
376374
spec['charm'] = str(charm_url)
377375
else:
378376
results = await self.model.charmstore.entity(str(charm_url))
@@ -638,7 +636,7 @@ async def run(self, context):
638636
self.application, charm, origin, overrides=self.resources)
639637
else:
640638
resources = context.bundle.get("applications", {}).get(self.application, {}).get("resources", {})
641-
import pdb;pdb.set_trace()
639+
642640
await context.model._deploy(
643641
charm_url=charm,
644642
application=self.application,
@@ -732,9 +730,6 @@ async def run(self, context):
732730
ch = None
733731
identifier = None
734732
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}
738733
return self.charm
739734

740735
if Schema.CHARM_STORE.matches(url.schema):

0 commit comments

Comments
 (0)