diff --git a/plugins/kernel_v2/config/vm.rb b/plugins/kernel_v2/config/vm.rb index 79e667f3b..63f07f1c5 100644 --- a/plugins/kernel_v2/config/vm.rb +++ b/plugins/kernel_v2/config/vm.rb @@ -25,6 +25,7 @@ module VagrantPlugins attr_accessor :box_download_checksum_type attr_accessor :box_download_client_cert attr_accessor :box_download_insecure + attr_accessor :communicator attr_accessor :graceful_halt_timeout attr_accessor :guest attr_accessor :hostname @@ -42,6 +43,7 @@ module VagrantPlugins @box_download_insecure = UNSET_VALUE @box_url = UNSET_VALUE @box_version = UNSET_VALUE + @communicator = UNSET_VALUE @graceful_halt_timeout = UNSET_VALUE @guest = UNSET_VALUE @hostname = UNSET_VALUE @@ -314,6 +316,7 @@ module VagrantPlugins @box_download_insecure = false if @box_download_insecure == UNSET_VALUE @box_url = nil if @box_url == UNSET_VALUE @box_version = nil if @box_version == UNSET_VALUE + @communicator = nil if @communicator == UNSET_VALUE @graceful_halt_timeout = 60 if @graceful_halt_timeout == UNSET_VALUE @guest = nil if @guest == UNSET_VALUE @hostname = nil if @hostname == UNSET_VALUE diff --git a/test/unit/plugins/kernel_v2/config/vm_test.rb b/test/unit/plugins/kernel_v2/config/vm_test.rb index b6be053c1..907f5d4f9 100644 --- a/test/unit/plugins/kernel_v2/config/vm_test.rb +++ b/test/unit/plugins/kernel_v2/config/vm_test.rb @@ -98,6 +98,13 @@ describe VagrantPlugins::Kernel_V2::VMConfig do end end + describe "#communicator" do + it "is nil by default" do + subject.finalize! + expect(subject.communicator).to be_nil + end + end + describe "#guest" do it "is nil by default" do subject.finalize!