Browse Source

fix: [compose-core] make charm action also compute relation subset

master
Valentin Lab 3 weeks ago
parent
commit
4e450f062d
  1. 10
      bin/compose-core

10
bin/compose-core

@ -5526,19 +5526,17 @@ case "$action" in
;; ;;
esac esac
if [ -n "$is_docker_compose_action_multi_service" ]; then
if [ -n "$DEBUG" ]; then
if [ -n "$DEBUG" ]; then
Elt "get relation subset" Elt "get relation subset"
start=$(time_now) start=$(time_now)
fi
fi
get_subset_relations "${services_args[@]}" >/dev/null || exit 1
get_subset_relations "${services_args[@]}" >/dev/null || exit 1
if [ -n "$DEBUG" ]; then
if [ -n "$DEBUG" ]; then
elapsed="$(time_elapsed $start "$(time_now)")" || exit 1 elapsed="$(time_elapsed $start "$(time_now)")" || exit 1
print_info "$(printf "%.3fs" "$elapsed")" print_info "$(printf "%.3fs" "$elapsed")"
Feedback Feedback
fi
fi fi
if [ -n "$is_docker_compose_action" ] && [ "${#services_args[@]}" -gt 0 ]; then if [ -n "$is_docker_compose_action" ] && [ "${#services_args[@]}" -gt 0 ]; then

Loading…
Cancel
Save