Skip to content

Commit

Permalink
change upgrade-charm to use the juju cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMacNaughton committed Oct 18, 2022
1 parent b63623a commit 6eda1a5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions zaza/charm_tests/lifecycle/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import logging
import os

import zaza.model as model
import subprocess


class UpgradeCharmsToPath(object):
Expand All @@ -41,5 +41,9 @@ def run(self, charms):
for charm in charms:
charm_path = cwd + '/' + charm + '.charm'
logging.debug("Upgrading {} to {}".format(charm, charm_path))
model.upgrade_charm(charm, path=charm_path)
subprocess.check_call([
'juju', 'upgrade-charm',
'--path', str(charm_path),
str(charm)
])
return True

0 comments on commit 6eda1a5

Please sign in to comment.