Skip to content

Commit

Permalink
Fix install by revision in integration tests (#865) (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 authored Dec 4, 2024
1 parent d97179f commit 5423d89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/tests/test_util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ def setup_k8s_snap(
snap_path = (tmp_path / "k8s.snap").as_posix()
instance.send_file(which_snap, snap_path)
cmd += ["--dangerous", snap_path]
elif snap_revision := _as_int(which_snap):
elif _as_int(which_snap):
LOG.info("Install k8s snap by revision")
cmd += [config.SNAP_NAME, "--revision", snap_revision]
cmd += [config.SNAP_NAME, "--revision", which_snap]
elif "/" in which_snap or which_snap in RISKS:
LOG.info("Install k8s snap by specific channel: %s", which_snap)
cmd += [config.SNAP_NAME, "--channel", which_snap]
Expand Down

0 comments on commit 5423d89

Please sign in to comment.