core: Allow strings to be used when checking for Guest capabilities

This commit is contained in:
Fabio Rehm 2013-09-11 19:56:14 -03:00
parent 38c6ab4f40
commit 7b440339f3
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ IMPROVEMENTS:
BUG FIXES:
- core: `Guest#capability?` now works with strings as well
- core: Fix NoMethodError in the new `Vagrant.has_plugin?` method [GH-2189]
- hosts/arch: NFS exporting works properly, no exceptions. [GH-2161]
- hosts/fedora: Fix host detection encoding issues. [GH-1977]

View File

@ -113,7 +113,7 @@ module Vagrant
#
# @return [Boolean]
def capability?(cap_name)
!capability_module(cap_name).nil?
!capability_module(cap_name.to_sym).nil?
end
# Executes the capability with the given name, optionally passing