Skip to content

Commit c23e998

Browse files
author
Kelven Yang
committed
bug 12711: make sure NFS storage is not considered as local storage
1 parent 2dedf6a commit c23e998

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • vmware-base/src/com/cloud/hypervisor/vmware/mo

‎vmware-base/src/com/cloud/hypervisor/vmware/mo/HostMO.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ public List<Pair<ManagedObjectReference, String>> getLocalDatastoreOnHost() thro
628628
if(ocs != null) {
629629
for(ObjectContent oc : ocs) {
630630
DatastoreSummary dsSummary = (DatastoreSummary)VmwareHelper.getPropValue(oc, "summary");
631-
if(dsSummary.getMultipleHostAccess() == false) {
631+
if(dsSummary.getMultipleHostAccess() == false && dsSummary.isAccessible() && dsSummary.getType().equalsIgnoreCase("vmfs")) {
632632
ManagedObjectReference morDs = oc.getObj();
633633
String name = (String)VmwareHelper.getPropValue(oc, "name");
634634

0 commit comments

Comments
 (0)