You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "weizhouapache (via GitHub)" <gi...@apache.org> on 2026/07/07 08:09:55 UTC
Re: [PR] Fix skip DRS for a VM [cloudstack]
weizhouapache commented on code in PR #12994:
URL: https://github.com/apache/cloudstack/pull/12994#discussion_r3534693887
##########
engine/schema/src/main/java/org/apache/cloudstack/resourcedetail/ResourceDetailsDaoBase.java:
##########
@@ -246,4 +248,20 @@ public String getActualValue(ResourceDetail resourceDetail) {
}
return resourceDetail.getValue();
}
+
+ @Override
+ public List<R> listDetailsForResourceIdsAndKey(List<Long> resourceIds, String key) {
+ if (CollectionUtils.isEmpty(resourceIds) || StringUtils.isBlank(key)) {
+ return Collections.emptyList();
+ }
+ SearchBuilder<R> sb = createSearchBuilder();
+ sb.and("name", sb.entity().getName(), Op.EQ);
+ sb.and("resourceIdIn", sb.entity().getResourceId(), Op.IN);
+ sb.done();
Review Comment:
can define a class-level variable for this, so it will be initialized only once
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org