Skip to content

Commit 0424650

Browse files
committed
Small fix for the CharmStore path in application.refresh
1 parent 89a271c commit 0424650

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

juju/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,11 +703,11 @@ async def refresh(
703703
if charm_url == self.data['charm-url']:
704704
raise JujuError('already running charm "%s"' % charm_url)
705705

706-
origin = client.CharmOrigin(source="charm-store", risk=channel)
706+
dest_origin = client.CharmOrigin(source="charm-store", risk=channel)
707707
# Update charm
708708
await charms_facade.AddCharm(url=charm_url,
709709
force=force,
710-
charm_origin=origin)
710+
charm_origin=dest_origin)
711711
if not charmstore_entity:
712712
charmstore_entity = await charmstore.entity(charm_url, channel=channel)
713713
charm_resources = charmstore_entity['Meta']['resources']

0 commit comments

Comments
 (0)