From cad4cec050e3e0d62b65abb234f62ce679192609 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 18 Feb 2018 23:00:41 -0500 Subject: [PATCH] fix: do not grab restart policies if the deploy phase cannot be read --- plugins/ps/subcommands/report | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ps/subcommands/report b/plugins/ps/subcommands/report index a7f145df8..821e16fce 100755 --- a/plugins/ps/subcommands/report +++ b/plugins/ps/subcommands/report @@ -27,7 +27,7 @@ report_single_app() { fi if (is_deployed "$APP"); then DEPLOYED="true"; else DEPLOYED="false"; fi - RESTARTPOLICY=$(get_restart_policies "$(get_phase_file_path "$passed_phases")") + RESTARTPOLICY=$(get_restart_policies "$(get_phase_file_path "$passed_phases")" || true) local CONTAINER_FILES="$(find "$DOKKU_ROOT/$APP" -maxdepth 1 -name "CONTAINER.*" -printf "%f\n" 2>/dev/null | sort -t . -k 2 -n | xargs)" local CONTAINER_FILE