CLOUDSTACK-5552 Set private gateway state to ready on delete failure

This commit is contained in:
Jayapal 2014-01-08 11:44:33 +05:30
parent 944358706d
commit 54275f4f05
1 changed files with 4 additions and 0 deletions

View File

@ -1519,6 +1519,10 @@ public class VpcManagerImpl extends ManagerBase implements VpcManager, VpcProvis
s_logger.debug("Private gateway " + gateway + " was applied succesfully on the backend");
} else {
s_logger.warn("Private gateway " + gateway + " failed to apply on the backend");
gatewayVO.setState(VpcGateway.State.Ready);
_vpcGatewayDao.update(gatewayVO.getId(), gatewayVO);
s_logger.debug("Marked gateway " + gatewayVO + " with state " + VpcGateway.State.Ready);
return false;
}
}