fix: do not grab restart policies if the deploy phase cannot be read

This commit is contained in:
Jose Diaz-Gonzalez
2018-02-18 23:00:41 -05:00
committed by GitHub
parent eddd518718
commit cad4cec050

View File

@@ -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