mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-07-15 20:06:30 -04:00
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
26 lines
576 B
Ruby
26 lines
576 B
Ruby
# Copyright IBM Corp. 2010, 2025
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
module VagrantPlugins
|
|
module GuestWindows
|
|
class Config < Vagrant.plugin("2", :config)
|
|
attr_accessor :set_work_network
|
|
|
|
def initialize
|
|
@set_work_network = UNSET_VALUE
|
|
end
|
|
|
|
def validate(machine)
|
|
errors = []
|
|
|
|
errors << "windows.set_work_network cannot be nil." if @set_work_network.nil?
|
|
|
|
{ "Windows Guest" => errors }
|
|
end
|
|
|
|
def finalize!
|
|
@set_work_network = false if @set_work_network == UNSET_VALUE
|
|
end
|
|
end
|
|
end
|
|
end
|