Browse Source

new: more information on the origin of the action found for custom charm action.

raw-remaining-args
Valentin Lab 9 years ago
parent
commit
2e40e88b83
  1. 13
      bin/compose

13
bin/compose

@ -1874,7 +1874,18 @@ case "$action" in
;;
*)
if is_service_action=$(has_service_action "${action_posargs[0]}" "$action"); then
debug "Found action $DARKCYAN$action$NORMAL in service $DARKYELLOW${action_posargs[0]}$NORMAL"
{
read-0 action_type
case "$action_type" in
"relation")
read-0 _ target_service relation_name
debug "Found action $DARKYELLOW${action_posargs[0]}$NORMAL/$DARKBLUE$relation_name$NORMAL/$DARKCYAN$action$NORMAL (in $DARKYELLOW$target_service$NORMAL)."
;;
"direct")
debug "Found action $DARKYELLOW${action_posargs[0]}$NORMAL.$DARKCYAN$action$NORMAL."
;;
esac
} < <(has_service_action "${action_posargs[0]}" "$action")
services="${action_posargs[0]}"
else
services="$(get_default_target_services "${action_posargs[@]}")"

Loading…
Cancel
Save