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

feat(portal-data): handle deleted based on new InstanceStatus'es

This commit is contained in:
Sérgio Ramos 2017-06-27 18:45:51 +01:00 committed by Judit Greskovits
parent ce2a13e501
commit 2bc7ef3973

View File

@ -122,7 +122,7 @@ module.exports = class Watcher {
console.log('-> updating instance', util.inspect(updatedInstance)); console.log('-> updating instance', util.inspect(updatedInstance));
return this._data.updateInstance(updatedInstance, handleError(() => { return this._data.updateInstance(updatedInstance, handleError(() => {
if (machine.state.toUpperCase() !== 'DELETED') { if (['DELETED', 'DESTROYED'].indexOf(machine.state.toUpperCase()) < 0) {
return; return;
} }