Skip to content

Commit

Permalink
synced_folders/nfs: unavailable on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Feb 27, 2014
1 parent c877fc2 commit 6b17783
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant/action/builtin/mixin_synced_folders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def default_synced_folder_type(machine, plugins)
ordered << [priority, key, impl]
end

# Order the plugins by priority
# Order the plugins by priority. Higher is tries before lower.
ordered = ordered.sort { |a, b| b[0] <=> a[0] }

# Find the proper implementation
Expand Down
5 changes: 5 additions & 0 deletions plugins/synced_folders/nfs/synced_folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ def initialize(*args)
end

def usable?(machine, raise_error=false)
# We don't currently support NFS on Windows
if Vagrant::Util::Platform.windows?
return false
end

# NFS is always available
true
end
Expand Down

0 comments on commit 6b17783

Please sign in to comment.