Skip to content

Commit

Permalink
Changed upgrade-charm to alias refresh
Browse files Browse the repository at this point in the history
Signed-off-by: Utkarsh Bhatt <[email protected]>
  • Loading branch information
UtkarshBhatthere committed Jul 2, 2024
1 parent d86a621 commit 31a0901
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zaza/charm_tests/lifecycle/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ def run(self, charms):
:returns: Status of charm upgrade test
:rtype: bool
"""
logging.info("Performing a charm upgrade on: {}".format(charms))
logging.info("Performing a charm upgrade on: %s", charms)
cwd = os.getcwd()
for charm in charms:
charm_path = cwd + '/' + charm + '.charm'
logging.debug("Upgrading {} to {}".format(charm, charm_path))
logging.debug("Upgrading %s to %s", charm, charm_path)
subprocess.check_call([
'juju', 'upgrade-charm',
'juju', 'refresh',
'--path', str(charm_path),
str(charm)
])
Expand Down

0 comments on commit 31a0901

Please sign in to comment.