diff --git a/tools/configure_tempest.sh b/tools/configure_tempest.sh index 5be709aa51..d50224875e 100755 --- a/tools/configure_tempest.sh +++ b/tools/configure_tempest.sh @@ -139,9 +139,9 @@ IFS="$(echo -e "\n\r")" FLAVORS="" for line in $FLAVOR_LINES; do if [ -z $DEFAULT_INSTANCE_TYPE ]; then - FLAVORS="$FLAVORS `echo $line | grep -v "^\(ID\|+--\)" | cut -d' ' -f2`" + FLAVORS="$FLAVORS `echo $line | grep -v "^\(|\s*ID\|+--\)" | cut -d' ' -f2`" else - FLAVORS="$FLAVORS `echo $line | grep -v "^\(ID\|+--\)" | grep "$DEFAULT_INSTANCE_TYPE" | cut -d' ' -f2`" + FLAVORS="$FLAVORS `echo $line | grep -v "^\(|\s*ID\|+--\)" | grep "$DEFAULT_INSTANCE_TYPE" | cut -d' ' -f2`" fi done IFS=" "