Ensure boot order is preserved unless overridden (#1560)

Add boot_order to the merge function to ensure that provider config
sections will persist the value if defined in earlier blocks. However to
ensure it is possible to override, definitions in latter sections will
replace the earlier definitions, but only if provided.

Fixes: #937
This commit is contained in:
Darragh Bailey
2022-08-25 18:46:33 +01:00
committed by GitHub
parent 3f1f2e79b3
commit f19478b050
3 changed files with 23 additions and 1 deletions

View File

@@ -1089,6 +1089,8 @@ module VagrantPlugins
def merge(other)
super.tap do |result|
result.boot_order = other.boot_order != [] ? other.boot_order : boot_order
c = disks.dup
c += other.disks
result.disks = c