Skip to content

Commit

Permalink
Fix make uuid-fix to catch :id: followed by whitespaces (#7365)
Browse files Browse the repository at this point in the history
Before this PR when running `make uuid-fix` to generate ids
the script was not catching lines with `:id:   ` having whitespaces
after the `:id:` token.

With this fix (by adding `\s*` to match any quantity of whitespace
it is now fixed.
  • Loading branch information
rochacbruno authored and vijay8451 committed Sep 25, 2019
1 parent 7104318 commit a965396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fix_uuids.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ else
fi

# finds occurrences of empty id: testimony tags
EMPTY_IDS=$(grep -E -i -r -n "${ID_TOKEN}(.+[[:blank:]]|$)" tests/foreman/ --include=*.py)
EMPTY_IDS=$(grep -E -i -r -n "\s*${ID_TOKEN}\s*(.+[[:blank:]]|$)" tests/foreman/ --include=*.py)

if [ -n "$EMPTY_IDS" ]; then
if [ $CHECK_ONLY = true ]; then
Expand Down

0 comments on commit a965396

Please sign in to comment.