Skip to content

Commit

Permalink
core: Allow strings to be used when checking for Guest capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrehm committed Sep 11, 2013
1 parent 38c6ab4 commit 7b44033
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion lib/vagrant/guest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 7b44033

@fgrehm
Copy link
Contributor Author

@fgrehm fgrehm commented on 7b44033 Sep 11, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mitchellh this has been sitting around my laptop for a while now and I ended up forgetting about it :P

Please sign in to comment.