From c559c5b78b56827ab5d109b1c89957f3d17bd62c Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 3 Nov 2022 15:30:03 +0100 Subject: [PATCH] fix: default value for ``auto`` in relation definition of ``metadata.yml`` enforced on empty values. Signed-off-by: Valentin Lab --- bin/compose-core | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/compose-core b/bin/compose-core index fcf7786..7ae5405 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -2568,6 +2568,7 @@ get_all_relations () { fi auto=$(echo "$relation_def" | shyaml get-value auto pair 2>/dev/null) + auto=${auto:-pair} case "$auto" in "pair"|"summon") service_list=() @@ -2602,7 +2603,7 @@ get_all_relations () { fi fi ;; - ""|null|disable|disabled) + null|disable|disabled) : ;; *)