providers/virtualbox: check for provider config nilness

This commit is contained in:
Mitchell Hashimoto 2014-05-06 13:10:22 -07:00
parent 9a146d779c
commit 7e6ba7fa50
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,10 @@ IMPROVEMENTS:
- **New guest: Linux Mint** is now properly detected. [GH-3648]
BUG FIXES:
- commands/package: `--base` works without crashing for VirtualBox.
## 1.6.0 (May 6, 2014)
BACKWARDS INCOMPATIBILITIES:

View File

@ -6,6 +6,7 @@ module VagrantPlugins
def usable?(machine, raise_errors=false)
# These synced folders only work if the provider if VirtualBox
machine.provider_name == :virtualbox &&
machine.provider_config &&
machine.provider_config.functional_vboxsf
end