From 7b440339f3d801e60e2451823dec04aae772d86a Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Wed, 11 Sep 2013 19:56:14 -0300 Subject: [PATCH] core: Allow strings to be used when checking for Guest capabilities --- CHANGELOG.md | 1 + lib/vagrant/guest.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55fa48e9d04..a49fddeeacb 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 6f2c26c6086..d31b8fb0b63 100644 --- a/lib/vagrant/guest.rb +++ b/lib/vagrant/guest.rb @@ -113,7 +113,7 @@ def detect! # # @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