From c9d93f2f8ace2fe885e89060347755ad2ce9b00e Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Mon, 7 Feb 2022 14:20:58 -0800 Subject: [PATCH] Request machines instead of targets --- plugins/commands/serve/service/guest_service.rb | 6 +++--- plugins/commands/serve/service/provider_service.rb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/commands/serve/service/guest_service.rb b/plugins/commands/serve/service/guest_service.rb index f631ca65b..4337105e9 100644 --- a/plugins/commands/serve/service/guest_service.rb +++ b/plugins/commands/serve/service/guest_service.rb @@ -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: "", ) ], diff --git a/plugins/commands/serve/service/provider_service.rb b/plugins/commands/serve/service/provider_service.rb index a9999de4f..309f5240d 100644 --- a/plugins/commands/serve/service/provider_service.rb +++ b/plugins/commands/serve/service/provider_service.rb @@ -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: "", ), }