@ -2548,6 +2548,11 @@ get_all_relations () {
local cache_file="$state_tmpdir/$FUNCNAME.cache.$(H "$@" "$(declare -p without_relations)")" \
local cache_file="$state_tmpdir/$FUNCNAME.cache.$(H "$@" "$(declare -p without_relations)")" \
services
services
if [ -n "$ALL_RELATIONS" ]; then
cat "$ALL_RELATIONS" || return 1
return 0
fi
if [ -e "${cache_file}" ]; then
if [ -e "${cache_file}" ]; then
#debug "$FUNCNAME: SESSION cache hit $1"
#debug "$FUNCNAME: SESSION cache hit $1"
export ALL_RELATIONS="$cache_file"
export ALL_RELATIONS="$cache_file"
@ -2899,6 +2904,11 @@ run_service_relations () {
# debug " Relations of ${DARKYELLOW}$subservice${NORMAL}:"
# debug " Relations of ${DARKYELLOW}$subservice${NORMAL}:"
while read-0 relation_name target_service relation_config tech_dep; do
while read-0 relation_name target_service relation_config tech_dep; do
[ "${without_relations[$service:$relation_name]}" ] && {
debug "Skipping $DARKYELLOW$service$NORMAL --$DARKBLUE$relation_name$NORMAL--> $DARKYELLOW*$NORMAL"
continue
}
export relation_config
export relation_config
export TARGET_SERVICE_NAME=$target_service
export TARGET_SERVICE_NAME=$target_service
MASTER_TARGET_SERVICE_NAME=$(get_top_master_service_for_service "$target_service") || return 1
MASTER_TARGET_SERVICE_NAME=$(get_top_master_service_for_service "$target_service") || return 1