Merge pull request #3071 from dokku/josegonzalez-patch-1

Do not grab restart policies if the deploy phase cannot be read
This commit is contained in:
Jose Diaz-Gonzalez
2018-02-19 14:21:13 -05:00
committed by GitHub

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