From 996703e5dbce0237aeeb953f54028f8a26008068 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 12 Dec 2024 15:20:36 +0100 Subject: [PATCH] fix: [compose-core] repair ``--get-available-actions`` --- bin/compose-core | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/compose-core b/bin/compose-core index a63ace8..5416e72 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -5304,6 +5304,13 @@ while read-0 arg; do exit 0 ;; --get-available-actions) + COMPOSE_YML_FILE=$(get_compose_yml_location) || exit 1 + COMPOSE_YML_CONTENT=$(get_compose_yml_content) || exit 1 + COMPOSE_YML_CONTENT_HASH=$(compose:yml:hash) || exit 1 + CHARM_STORE_HASH=$(charm.store_metadata_hash) || exit 1 + COMBINED_HASH=$(H "$COMPOSE_YML_CONTENT_HASH" "$CHARM_STORE_HASH") || exit 1 + export COMPOSE_YML_FILE COMPOSE_YML_CONTENT COMPOSE_YML_CONTENT_HASH CHARM_STORE_HASH COMBINED_HASH + get_docker_charm_action exit $? ;;