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
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}