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: "", ), }