From 49b01143a083d3edbd2f36e3907e5ca6cf7f9e65 Mon Sep 17 00:00:00 2001 From: Mriyam Tamuli Date: Sun, 11 Dec 2016 13:26:07 +0530 Subject: [PATCH] Correct apps:report to not exit if one app is not deployed --- plugins/apps/subcommands/report | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/plugins/apps/subcommands/report b/plugins/apps/subcommands/report index 9a3963f68..6a915cc94 100755 --- a/plugins/apps/subcommands/report +++ b/plugins/apps/subcommands/report @@ -5,6 +5,11 @@ source "$PLUGIN_AVAILABLE_PATH/apps/functions" report_single_app() { local APP="$1"; local APP_DIR="$DOKKU_ROOT/$APP"; local INFO_FLAG="$2" + local use_echo; + if [[ "$INFO_FLAG" == "true" ]]; then + use_echo=true + INFO_FLAG="" + fi verify_app_name "$APP" local DOKKU_APP_CIDS=$(get_app_container_ids "$APP") if [[ -n $DOKKU_APP_CIDS ]]; then @@ -31,7 +36,11 @@ report_single_app() { dokku_log_verbose "$(printf "%-20s %-25s" "${key^}" "${flag#*: }")" done else - dokku_log_fail "not deployed" + if [[ "$use_echo" ]]; then + echo "not deployed" + else + dokku_log_fail "not deployed" + fi fi else local match=false; local value_exists=false @@ -63,7 +72,7 @@ apps_report_cmd() { if [[ -z $2 ]]; then for APP in $INSTALLED_APPS; do - report_single_app "$APP" + report_single_app "$APP" "true" done else report_single_app "$2" "$3"