sureshanaparti commented on a change in pull request #4380:
URL: https://github.com/apache/cloudstack/pull/4380#discussion_r500744207



##########
File path: 
plugins/storage/volume/default/src/main/java/org/apache/cloudstack/storage/datastore/lifecycle/CloudStackPrimaryDataStoreLifeCycleImpl.java
##########
@@ -141,6 +141,9 @@ public DataStore initialize(Map<String, Object> dsInfos) {
 
         URI uri = null;
         try {
+            if (url != null && url.startsWith("rbd://")) {

Review comment:
       in case the url scheme is not case sensitive, can use:
   
   ```suggestion
               if (url != null && url..toLowerCase().startsWith("rbd://")) {
   ```
   
   (or)
   
   ```suggestion
               if (StringUtils.startsWithIgnoreCase(url, "rbd://")) {
   ```
   




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


Reply via email to