Browse Source

fix: [compose-core] add missing ``RELATION_DATA_FILE`` var for indirect action

Valentin Lab 4 weeks ago
parent
commit
ba87920715
  1. 2
      bin/compose-core

2
bin/compose-core

@ -3604,6 +3604,7 @@ _run_service_action_relation() {
print_syntax_error "$FUNCNAME: too many arguments in action descriptor" print_syntax_error "$FUNCNAME: too many arguments in action descriptor"
return 1 return 1
fi 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 action_errlvl_file="$state_tmpdir/action-$service-$charm-$action-errlvl"
export state_tmpdir export state_tmpdir
@ -3615,6 +3616,7 @@ _run_service_action_relation() {
export RELATION_TARGET_CHARM="$target_charm" export RELATION_TARGET_CHARM="$target_charm"
export RELATION_BASE_SERVICE="$service" export RELATION_BASE_SERVICE="$service"
export RELATION_BASE_CHARM="$charm" export RELATION_BASE_CHARM="$charm"
export RELATION_DATA_FILE="$RELATION_DATA_FILE"
export ACTION_NAME=$action export ACTION_NAME=$action
export ACTION_SCRIPT_PATH="$action_script_path" export ACTION_SCRIPT_PATH="$action_script_path"
export CONTAINER_NAME=$(get_top_master_service_for_service "$service") export CONTAINER_NAME=$(get_top_master_service_for_service "$service")

Loading…
Cancel
Save