vagrant/plugins/guests/windows/config.rb
oss-core-libraries-dashboard[bot] 73228596f4
[COMPLIANCE] Update Copyright and License Headers (Batch 3 of 7) (#13763)
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2025-12-22 16:46:39 +05:30

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