From 2e40e88b833fc168edf9d299087461fd1edc7339 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Tue, 2 Feb 2016 08:20:57 +0700 Subject: [PATCH] new: more information on the origin of the action found for custom charm action. --- bin/compose | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/bin/compose b/bin/compose index 1d216c4..00be668 100755 --- a/bin/compose +++ b/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[@]}")"