Rename guest client 'capability method to match the client interface

This commit is contained in:
sophia 2021-08-24 13:45:45 -05:00 committed by Paul Hinze
parent 5d46b93a99
commit 8efc8542b7
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ module Vagrant
# @param [Symbol] cap_name Name of the capability
def capability(cap_name, *args)
@logger.debug("running remote guest capability #{cap_name} with args #{args}")
if !client.capability?(cap_name)
if !client.has_capability?(cap_name)
raise Errors::GuestCapabilityNotFound,
cap: cap_name.to_s,
guest: name
@ -54,7 +54,7 @@ module Vagrant
# @return [Boolean]
def capability?(cap_name)
@logger.debug("checking for remote guest capability #{cap_name}")
client.capability?(cap_name)
client.has_capability?(cap_name)
end
# Returns the specified or detected guest type name.

View File

@ -37,7 +37,7 @@ module VagrantPlugins
# @param [Symbol] cap_name Capability name
# @return [Boolean]
def capability?(cap_name)
def has_capability?(cap_name)
@logger.debug("checking for capability #{cap_name}")
val = SDK::Args::NamedCapability.new(Capability: cap_name.to_s)
req = SDK::FuncSpec::Args.new(