From 455181e1b9f8d5a0bacef6d570a0217379a0127e Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 23 Oct 2024 20:42:01 +0200 Subject: [PATCH] fix: [compose-core] add missing ``RELATION_DATA_FILE`` var for indirect action --- bin/compose-core | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/compose-core b/bin/compose-core index fc888ea..f929660 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -3608,6 +3608,7 @@ _run_service_action_relation() { print_syntax_error "$FUNCNAME: too many arguments in action descriptor" return 1 fi + RELATION_DATA_FILE=$(get_relation_data_file "$service" "$target_service" "$relation_name" "$relation_config") || return 1 export action_errlvl_file="$state_tmpdir/action-$service-$charm-$action-errlvl" export state_tmpdir @@ -3619,6 +3620,7 @@ _run_service_action_relation() { export RELATION_TARGET_CHARM="$target_charm" export RELATION_BASE_SERVICE="$service" export RELATION_BASE_CHARM="$charm" + export RELATION_DATA_FILE="$RELATION_DATA_FILE" export ACTION_NAME=$action export ACTION_SCRIPT_PATH="$action_script_path" export CONTAINER_NAME=$(get_top_master_service_for_service "$service")