Github user mike-tutkowski commented on the pull request:

    https://github.com/apache/cloudstack/pull/547#issuecomment-137816807
  
    Here is the relevant code (in HostMO.java):
    
        public List<Pair<ManagedObjectReference, String>> 
getLocalDatastoreOnHost() throws Exception {
            List<Pair<ManagedObjectReference, String>> dsList = new 
ArrayList<Pair<ManagedObjectReference, String>>();
    
            ObjectContent[] ocs = getDatastorePropertiesOnHyperHost(new 
String[] {"name", "summary"});
            if (ocs != null) {
                for (ObjectContent oc : ocs) {
                    DatastoreSummary dsSummary = 
(DatastoreSummary)VmwareHelper.getPropValue(oc, "summary");
                    if (dsSummary.isMultipleHostAccess() == false && 
dsSummary.isAccessible() && dsSummary.getType().equalsIgnoreCase("vmfs")) {
                        ManagedObjectReference morDs = oc.getObj();
                        String name = (String)VmwareHelper.getPropValue(oc, 
"name");
    
                        if (!name.startsWith("-iqn.") && 
!name.startsWith("_iqn.")) {
                            dsList.add(new Pair<ManagedObjectReference, 
String>(morDs, name));
                        }
                    }
                }
            }
            return dsList;
        }


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to