Browse Source

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

master
Valentin Lab 3 months ago
parent
commit
1a559ff7fb
  1. 10
      bin/compose-core

10
bin/compose-core

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

Loading…
Cancel
Save