labs: skip osbash scripts in Vagrant
Make Vagrant skip not only osbash commands (lines starting with "cmd "), but also scripts in the osbash directory. This allows us to use the same config/scripts.* files for osbash and Vagrant while preventing Vagrant from executing scripts that are only meant for osbash. Change-Id: I86d1bb6065a58edcc67015603da59af9d6aff4c7 Implements: blueprint openstack-training-labs
This commit is contained in:
parent
9f9b691bc8
commit
6216f40a34
@ -24,8 +24,8 @@ function vagrant_start_from_config {
|
||||
if [[ $field_1 =~ ^# ]]; then
|
||||
# Skip lines that are commented out
|
||||
continue
|
||||
elif [[ "$field_1" = cmd ]]; then
|
||||
# Skip osbash commands, Vagrant ignores them
|
||||
elif [[ "$field_1" = cmd || "$field_1" = osbash ]]; then
|
||||
# Skip osbash commands and scripts for Vagrant
|
||||
continue
|
||||
else
|
||||
local dir="$(src_dir_code_to_dir "$field_1")"
|
||||
|
Loading…
x
Reference in New Issue
Block a user