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));
|
||||
return this._data.updateInstance(updatedInstance, handleError(() => {
|
||||
if (machine.state.toUpperCase() !== 'DELETED') {
|
||||
if (['DELETED', 'DESTROYED'].indexOf(machine.state.toUpperCase()) < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user