Simplify vm config for determining fstab modification setting

This commit is contained in:
sophia 2020-08-21 11:10:01 -05:00
parent e96d60c029
commit 23901fddf5

View File

@ -726,14 +726,11 @@ module VagrantPlugins
errors = _detected_errors
if @allow_fstab_modification == UNSET_VALUE
plugins = Vagrant.plugin("2").manager.synced_folders
machine.synced_folders.types.each do |impl_name|
inst = machine.synced_folders.type(impl_name)
if inst.capability?(:default_fstab_modification)
if inst.capability(:default_fstab_modification) == false
@allow_fstab_modification = false
break
end
if inst.capability?(:default_fstab_modification) && inst.capability(:default_fstab_modification) == false
@allow_fstab_modification = false
break
end
end
@allow_fstab_modification = true if @allow_fstab_modification == UNSET_VALUE