Skip to content

Commit da3287e

Browse files
committed
add missing "revision" parameter to addModel step.
1 parent 3c57a0c commit da3287e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

juju/bundle.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ class AddCharmChange(ChangeInfo):
659659
_toPy = {'charm': 'charm',
660660
'series': 'series',
661661
'channel': 'channel',
662+
'revision': 'revision',
662663
'architecture': 'architecture'}
663664

664665
"""AddCharmChange holds a change for adding a charm to the environment.
@@ -675,6 +676,7 @@ class AddCharmChange(ChangeInfo):
675676
:series: series of the charm to be added if the charm default is
676677
not sufficient.
677678
:channel: preferred channel for obtaining the charm.
679+
:revision: specified revision of the charm to be added if specified.
678680
"""
679681
@staticmethod
680682
def method():
@@ -710,6 +712,7 @@ async def run(self, context):
710712
architecture=arch,
711713
risk=ch.risk,
712714
track=ch.track,
715+
revision=self.revision,
713716
base=base)
714717
identifier, origin = await context.model._resolve_charm(url, origin)
715718

0 commit comments

Comments
 (0)