You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/04/12 09:26:30 UTC

[GitHub] [cloudstack] rohityadavcloud commented on a diff in pull request #6242: Search for resource type efficiently

rohityadavcloud commented on code in PR #6242:
URL: https://github.com/apache/cloudstack/pull/6242#discussion_r848204769


##########
api/src/main/java/com/cloud/server/ResourceTag.java:
##########
@@ -91,6 +96,53 @@ public boolean resourceMetadataSupport() {
         public boolean resourceIconSupport() {
             return resourceIconSupport;
         }
+
+        static {
+            resourceObjectTypeMap.put("uservm", UserVm);

Review Comment:
   @ravening is there any automatic way to have lowered-case object-type name map to the ResourceObjectType? Otherwise, this creates issue of manually maintaining this hashmap.



-- 
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