GaOrtiga commented on code in PR #13023:
URL: https://github.com/apache/cloudstack/pull/13023#discussion_r4400390296
##########
server/src/main/java/org/apache/cloudstack/storage/heuristics/HeuristicRuleHelper.java:
##########
@@ -272,6 +272,10 @@ public DataStore interpretHeuristicRule(String rule,
HeuristicType heuristicType
"returning a valid UUID.", scriptReturn, rule));
}
+ if (dataStoreManager.isRemovedOrReadonly(dataStore)) {
+ throw new CloudRuntimeException(String.format("DataStore [{}]
returned by heuristic rule is marked as read-only.", dataStore));
Review Comment:
fixed it, thanks
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]