Browse Source

fix: [compose-core] don't ignore relation constraint if providers are more than one

cache-relation
Valentin Lab 10 months ago
parent
commit
1a559ff7fb
  1. 8
      bin/compose-core

8
bin/compose-core

@ -2693,17 +2693,15 @@ get_all_relations () {
services[$ts]=1 services[$ts]=1
changed=1 changed=1
continue continue
elif [ "${#providers[@]}" -gt 1 ]; then
fi
if [ "${#providers[@]}" -gt 1 ]; then
msg="" msg=""
warn "No auto-pairing ${DARKYELLOW}$service${NORMAL}" \ warn "No auto-pairing ${DARKYELLOW}$service${NORMAL}" \
"--${DARKBLUE}$relation_name${NORMAL}--> ($DARKYELLOW""${providers[@]}""$NORMAL)"\ "--${DARKBLUE}$relation_name${NORMAL}--> ($DARKYELLOW""${providers[@]}""$NORMAL)"\
"(> 1 provider)." "(> 1 provider)."
continue
else
if [ "$auto" == "summon" ]; then
elif [ "$auto" == "summon" ]; then ## no provider
summon+=("$service" "$relation_name" "$relation_def") summon+=("$service" "$relation_name" "$relation_def")
fi fi
fi
;; ;;
null|disable|disabled) null|disable|disabled)
: :

Loading…
Cancel
Save