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 authored and GitHub committed 2018-02-19 14:21:13 -05:00
commit c4ba380627
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ report_single_app() {
fi fi
if (is_deployed "$APP"); then DEPLOYED="true"; else DEPLOYED="false"; 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_FILES="$(find "$DOKKU_ROOT/$APP" -maxdepth 1 -name "CONTAINER.*" -printf "%f\n" 2>/dev/null | sort -t . -k 2 -n | xargs)"
local CONTAINER_FILE local CONTAINER_FILE