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>
master
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
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)
:
;;
*)

Loading…
Cancel
Save