mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 14:10:04 +02:00
feat(portal-watch): don't filter by hash
This commit is contained in:
parent
bb99662976
commit
8717d19136
@ -129,7 +129,9 @@ module.exports = class Watcher {
|
|||||||
return setTimeout(() => {
|
return setTimeout(() => {
|
||||||
return updateService({
|
return updateService({
|
||||||
id: service.id,
|
id: service.id,
|
||||||
instances: instances.filter(({ id }) => { return id !== instance.id; })
|
instances: instances.filter(({ id }) => {
|
||||||
|
return id !== instance.id;
|
||||||
|
})
|
||||||
});
|
});
|
||||||
}, this._frequency * 4);
|
}, this._frequency * 4);
|
||||||
}));
|
}));
|
||||||
@ -192,7 +194,7 @@ module.exports = class Watcher {
|
|||||||
|
|
||||||
// assert that service exists
|
// assert that service exists
|
||||||
const assertService = (deploymentGroupId) => {
|
const assertService = (deploymentGroupId) => {
|
||||||
this.getService({ serviceName, serviceHash: tags[HASH], deploymentGroupId }, handleError((service) => {
|
this.getService({ serviceName, deploymentGroupId }, handleError((service) => {
|
||||||
if (!service) {
|
if (!service) {
|
||||||
console.error(`Service "${serviceName}" form DeploymentGroup "${deploymentGroupName}" for machine ${id} not found`);
|
console.error(`Service "${serviceName}" form DeploymentGroup "${deploymentGroupName}" for machine ${id} not found`);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user