diff --git a/CHANGELOG.md b/CHANGELOG.md index 55fa48e9d..a49fddeea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] diff --git a/lib/vagrant/guest.rb b/lib/vagrant/guest.rb index 6f2c26c60..d31b8fb0b 100644 --- a/lib/vagrant/guest.rb +++ b/lib/vagrant/guest.rb @@ -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