Browse Source

fix: default value for ``auto`` in relation definition of ``metadata.yml`` enforced on empty values.

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
cache-relation
Valentin Lab 2 years ago
parent
commit
c559c5b78b
  1. 3
      bin/compose-core

3
bin/compose-core

@ -2568,6 +2568,7 @@ get_all_relations () {
fi fi
auto=$(echo "$relation_def" | shyaml get-value auto pair 2>/dev/null) auto=$(echo "$relation_def" | shyaml get-value auto pair 2>/dev/null)
auto=${auto:-pair}
case "$auto" in case "$auto" in
"pair"|"summon") "pair"|"summon")
service_list=() service_list=()
@ -2602,7 +2603,7 @@ get_all_relations () {
fi fi
fi fi
;; ;;
""|null|disable|disabled)
null|disable|disabled)
: :
;; ;;
*) *)

Loading…
Cancel
Save