From 1a559ff7fba87ec6a1aad2b5e9797f07be53f2de Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 15 Feb 2024 14:35:23 +0100 Subject: [PATCH] fix: [compose-core] don't ignore relation constraint if providers are more than one --- bin/compose-core | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/compose-core b/bin/compose-core index f08377d..79822df 100755 --- a/bin/compose-core +++ b/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)