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:
parent
ce2a13e501
commit
2bc7ef3973
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user