Skip to contentSkip to conversation

vagrant: Fix the "validate before bringup" Kconfig option

PATCH New Chuck Lever 1 participant 1 message Mar 30, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vagrant: Fix the "validate before bringup" Kconfig option

Checking either box selects both, which is unexpected behavior.

Fixes bbe7145e2452 ("vagrant: add Vagrantfile validation step")
---
 scripts/bringup_vagrant.sh | 2 +-
 vagrant/Kconfig            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Posting for review in case some has a different preferred way of fixing this minor issue.

scripts/bringup_vagrant.sh +1 -1
index 943a47f192bc..4d30c2312000 100755
@@ -88,7 +88,7 @@ if [[ "$CONFIG_VAGRANT_BOX_UPDATE_ON_BRINGUP" == "y" ]]; then
 		vagrant box update
 	fi
 fi
-if [[ "$CONFIG_VAGRANT_BOX_UPDATE_ON_BRINGUP" == "y" ]]; then
+if [[ "$CONFIG_VAGRANT_VALIDATE_BEFORE_BRINGUP" == "y" ]]; then
 	vagrant validate
 	if [[ $? -ne 0 ]]; then
 		echo "kdevops: Failed to validate Vagrantfile, stopping here"
vagrant/Kconfig +1 -1
index b5abba76f94f..93480274885e 100644
@@ -239,7 +239,7 @@ config VAGRANT_BOX_UPDATE_ON_BRINGUP
 	  manually by the typical distro means to update itself. For example
 	  on Debian testing that's "apt-get update && apt-get dist-upgrade".
 
-config VAGRANT_BOX_UPDATE_ON_BRINGUP
+config VAGRANT_VALIDATE_BEFORE_BRINGUP
 	bool "Validate Vagrantfile prior to bringup"
 	default y
 	help
Signature · 1 line
2.44.0