Browse Source

fix: invalid default value for ``constraint``

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

2
bin/compose-core

@ -2477,7 +2477,7 @@ get_all_relations () {
return 1
;;
esac
constraint=$(echo "$relation_def" | shyaml get-value constraint auto-pair 2>/dev/null)
constraint=$(echo "$relation_def" | shyaml get-value constraint optional 2>/dev/null)
case "$constraint" in
"required")
required+=("$service" "$relation_name" "$relation_def")

Loading…
Cancel
Save