Request machines instead of targets

This commit is contained in:
Chris Roberts 2022-02-07 14:20:58 -08:00 committed by Paul Hinze
parent 025808ba27
commit c9d93f2f8a
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 6 additions and 6 deletions

View File

@ -10,8 +10,8 @@ module VagrantPlugins
def initialize(*args, **opts, &block)
caps = Vagrant.plugin("2").local_manager.guest_capabilities
default_args = {
Client::Target => SDK::FuncSpec::Value.new(
type: "hashicorp.vagrant.sdk.Args.Target",
Client::Target::Machine => SDK::FuncSpec::Value.new(
type: "hashicorp.vagrant.sdk.Args.Target.Machine",
name: "",
),
}
@ -23,7 +23,7 @@ module VagrantPlugins
name: "detect_spec",
args: [
SDK::FuncSpec::Value.new(
type: "hashicorp.vagrant.sdk.Args.Target",
type: "hashicorp.vagrant.sdk.Args.Target.Machine",
name: "",
)
],

View File

@ -2,14 +2,14 @@ module VagrantPlugins
module CommandServe
module Service
class ProviderService < SDK::ProviderService::Service
include CapabilityPlatformService
def initialize(*args, **opts, &block)
caps = Vagrant.plugin("2").local_manager.provider_capabilities
default_args = {
Client::Target => SDK::FuncSpec::Value.new(
type: "hashicorp.vagrant.sdk.Args.Target",
Client::Target::Machine => SDK::FuncSpec::Value.new(
type: "hashicorp.vagrant.sdk.Args.Target.Machine",
name: "",
),
}