1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 06:00:06 +02:00

fix: no longer ignore successful status checks

This commit is contained in:
Wyatt Preul 2017-09-18 17:00:41 -05:00 committed by Sérgio Ramos
parent ac2eab6cfe
commit 3c8b2b0c8f
6 changed files with 9 additions and 11 deletions

View File

@ -72,7 +72,7 @@ frontend:
# BACKEND
#############################################################################
api:
image: joyent/copilot-api:1.8.15
image: joyent/copilot-api:1.8.16
mem_limit: 1g
expose:
- 3000
@ -81,8 +81,6 @@ api:
- _env
environment:
- PORT=3000
ports:
- "8080:8080"
restart: always
# Docker-compose wrapper

View File

@ -1,6 +1,6 @@
{
"name": "api",
"version": "1.8.15",
"version": "1.8.16",
"description": "",
"main": "./server.js",
"scripts": {
@ -19,9 +19,9 @@
"hapi": "^16.6.0",
"hoek": "^4.1.1",
"joi": "^10.6.0",
"joyent-cp-gql-schema": "^1.7.0",
"joyent-cp-gql-schema": "^1.8.0",
"piloted": "^3.1.1",
"portal-api": "^1.8.15",
"portal-api": "^1.8.16",
"toppsy": "^1.1.0",
"triton": "^5.2.0"
}

View File

@ -66,7 +66,7 @@ frontend:
# BACKEND
#############################################################################
api:
image: joyent/copilot-api:1.8.15
image: joyent/copilot-api:1.8.16
mem_limit: 512m
links:
- consul:consul

View File

@ -1,6 +1,6 @@
{
"name": "joyent-cp-gql-schema",
"version": "1.7.0",
"version": "1.8.0",
"license": "MPL-2.0",
"repository": "github:yldio/copilot",
"main": "index.js",

View File

@ -167,7 +167,7 @@ module.exports = class ContainerPilotWatcher extends Events {
func: fetchStatus,
inputs: machine.ips
}, (err, results) => {
if (err || !results.successes || !results.successes.length) {
if (err && (!results.successes || !results.successes.length)) {
return cb(err);
}

View File

@ -1,6 +1,6 @@
{
"name": "portal-api",
"version": "1.8.15",
"version": "1.8.16",
"description": "",
"main": "./lib/index.js",
"scripts": {
@ -39,7 +39,7 @@
"graphi": "^3.0.0",
"hasha": "^3.0.0",
"hoek": "^4.2.0",
"joyent-cp-gql-schema": "^1.7.0",
"joyent-cp-gql-schema": "^1.8.0",
"lodash.find": "^4.6.0",
"lodash.flatten": "^4.4.0",
"lodash.get": "^4.4.2",