Browse Source

fix: [compose-core] use ``return 1`` instead of ``exit 1`` in ``_get_container_relation()``

cache-relation
Valentin Lab 1 year ago
parent
commit
9578503e4d
  1. 3
      bin/compose-core

3
bin/compose-core

@ -3034,8 +3034,9 @@ _get_container_relation() {
} }
done < <(_get_charm_metadata_uses "$metadata") done < <(_get_charm_metadata_uses "$metadata")
if [ -z "$found" ]; then if [ -z "$found" ]; then
die "Charm $DARKPINK$charm$NORMAL is a subordinate but does not have any required relation declaration with" \
err "Charm $DARKPINK$charm$NORMAL is a subordinate but does not have any required relation declaration with" \
"${WHITE}scope${NORMAL} set to 'container'." "${WHITE}scope${NORMAL} set to 'container'."
return 1
fi fi
printf "%s" "$found" printf "%s" "$found"
} }

Loading…
Cancel
Save