Convert capability name to symbol for lookup

This commit is contained in:
Mitchell Hashimoto 2013-04-08 10:44:56 -07:00
parent a9b2ab33ad
commit 2ddefd49a1
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ module Vagrant
# more arguments onwards to the capability.
def capability(cap_name, *args)
@logger.info("Execute capability: #{cap_name} (#{@chain[0][0]})")
cap_mod = capability_module(cap_name)
cap_mod = capability_module(cap_name.to_sym)
if !cap_mod
raise Errors::GuestCapabilityNotFound,
:cap => cap_name.to_s,