anuragaw commented on a change in pull request #3425: [WIP DO NOT MERGE] Better
tracking host maintanence success and failure
URL: https://github.com/apache/cloudstack/pull/3425#discussion_r350017809
##########
File path:
engine/orchestration/src/main/java/org/apache/cloudstack/engine/datacenter/entity/api/db/EngineHostVO.java
##########
@@ -730,7 +732,9 @@ public boolean isDisabled() {
@Override
public boolean isInMaintenanceStates() {
- return (getResourceState() == ResourceState.Maintenance ||
getResourceState() == ResourceState.ErrorInMaintenance || getResourceState() ==
ResourceState.PrepareForMaintenance);
+ ResourceState state = getResourceState();
+ return (state == ResourceState.Maintenance || state ==
ResourceState.ErrorInMaintenance ||
Review comment:
Done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services