Skip to content

Commit

Permalink
Improve deploy with revision example
Browse files Browse the repository at this point in the history
without the --revision parameter this will deploy rev 21, but with the
parameter it will deploy 19.
  • Loading branch information
cderici committed Oct 5, 2023
1 parent 47c5244 commit c8f9273
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/deploywithrevision.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ async def main():
await model.connect()

try:
print(f'Deploying {charm} --channel 2.0/stable --revision 22')
print(f'Deploying {charm} --channel latest/edge --revision 19')
application = await model.deploy(
'juju-qa-test',
application_name='test',
channel='2.0/stable',
revision=22,
channel='latest/edge',
series='xenial',
revision=19,
)

print('Waiting for active')
Expand Down

0 comments on commit c8f9273

Please sign in to comment.