Fix container service status check

It appears Chrome changed the status code returned when it cannot connect
This commit is contained in:
Joseph Schorr 2016-10-21 13:31:02 -04:00
parent a74e94fb67
commit d2bc8722c9

View file

@ -19,7 +19,7 @@ function(ApiService, $timeout, Restangular) {
containerService.checkStatus = function(callback, opt_config) {
var errorHandler = function(resp) {
if (resp.status == 404 || resp.status == 502) {
if (resp.status == 404 || resp.status == 502 || resp.status == -1) {
// Container has not yet come back up, so we schedule another check.
containerService.scheduleStatusCheck(callback, opt_config);
return;