mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-5552 Setup private gateway state to ready on delete failure
On delete private gateway failure set the state to ready, So that it can be deleted later.
This commit is contained in:
parent
f561e126b2
commit
cb48c97801
|
|
@ -1559,6 +1559,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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue