Convert capability name to symbol for lookup
This commit is contained in:
parent
a9b2ab33ad
commit
2ddefd49a1
|
@ -111,7 +111,7 @@ module Vagrant
|
||||||
# more arguments onwards to the capability.
|
# more arguments onwards to the capability.
|
||||||
def capability(cap_name, *args)
|
def capability(cap_name, *args)
|
||||||
@logger.info("Execute capability: #{cap_name} (#{@chain[0][0]})")
|
@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
|
if !cap_mod
|
||||||
raise Errors::GuestCapabilityNotFound,
|
raise Errors::GuestCapabilityNotFound,
|
||||||
:cap => cap_name.to_s,
|
:cap => cap_name.to_s,
|
||||||
|
|
Loading…
Reference in New Issue