Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support older charm which doesn't have charmcraft_channel
Browse files Browse the repository at this point in the history
xtrusia committed Sep 6, 2024
1 parent 01b6add commit d7272d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openstack/tools/charmed_openstack_functest_runner.sh
Original file line number Diff line number Diff line change
@@ -115,7 +115,10 @@ export TEST_CONSTRAINTS_FILE=https://raw.githubusercontent.com/openstack-charmer

# 2. Build
if ! $SKIP_BUILD; then
sudo snap refresh charmcraft --channel $(grep charmcraft_channel osci.yaml| sed -r 's/.+:\s+(\S+)/\1/')
# default value is 1.5/stable, assumed that later charm likely have charmcraft_channel value
CHARMCRAFT_CHANNEL=$(grep charmcraft_channel osci.yaml | sed -r 's/.+:\s+(\S+)/\1/') || CHARMCRAFT_CHANNEL="1.5/stable"

sudo snap refresh charmcraft --channel "$CHARMCRAFT_CHANNEL"

# ensure lxc initialised
lxd init --auto || true

0 comments on commit d7272d1

Please sign in to comment.