Skip to content

Commit fd4a57c

Browse files
Merge branch 'master' of git://github.com/juju/python-libjuju into merge-2.9-master
2 parents 4f55306 + 8bdae72 commit fd4a57c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

juju/bundle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,9 @@ async def run(self, context):
434434
if self.charm.startswith('local:'):
435435
return self.charm
436436

437-
entity_id = await context.charmstore.entityId(self.charm)
437+
entity_id = await context.charmstore.entityId(self.charm, channel=self.channel)
438438
log.debug('Adding %s', entity_id)
439-
await context.client_facade.AddCharm(channel=None, url=entity_id, force=False)
439+
await context.client_facade.AddCharm(channel=self.channel, url=entity_id, force=False)
440440
return entity_id
441441

442442
def __str__(self):

tests/unit/test_bundle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,10 @@ async def test_run(self, event_loop):
303303
assert result == "entity_id"
304304

305305
charmstore.entityId.assert_called_once()
306-
charmstore.entityId.assert_called_with("charm")
306+
charmstore.entityId.assert_called_with("charm", channel="channel")
307307

308308
client_facade.AddCharm.assert_called_once()
309-
client_facade.AddCharm.assert_called_with(channel=None,
309+
client_facade.AddCharm.assert_called_with(channel="channel",
310310
url="entity_id",
311311
force=False)
312312

0 commit comments

Comments
 (0)