Skip to content

Commit 336c39e

Browse files
committed
Add revision parameter in LocalDeployType.resolve
Note that --revision is only used for charmhub charms, so we're not passing this info into the CharmOrigin for local charms.
1 parent d101000 commit 336c39e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

juju/model.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,12 @@ class LocalDeployType:
441441
"""LocalDeployType deals with local only deployments.
442442
"""
443443

444-
async def resolve(self, url, architecture, app_name=None, channel=None, series=None, entity_url=None):
444+
async def resolve(self, url, architecture, app_name=None, channel=None, series=None, revision=None, entity_url=None):
445445
"""resolve attempts to resolve a local charm or bundle using the url
446446
and architecture. If information is missing, it will attempt to backfill
447447
that information, before sending the result back.
448+
449+
-- revision flag is ignored for local charms
448450
"""
449451

450452
entity_url = url.path()

0 commit comments

Comments
 (0)