Check for 502s as well

This commit is contained in:
Joseph Schorr 2015-01-13 14:33:29 -05:00
parent 0d2c42ad03
commit 511c607bbb

View file

@ -3038,7 +3038,7 @@ function SuperUserAdminCtrl($scope, $timeout, ApiService, Features, UserService,
$scope.checkContainerStatus = function() {
var errorHandler = function(resp) {
if (resp.status == 404 && $scope.configStep == 'valid-database') {
if ((resp.status == 404 || resp.status == 502) && $scope.configStep == 'valid-database') {
// Container has not yet come back up, so we schedule another check.
$scope.waitForValidConfig();
return;