Skip to content

chore(provisioner/terraform): minimize testdata diff #16908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 13, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
compat
  • Loading branch information
mafredri committed Mar 13, 2025
commit fea7f9e79bc741fe513d6f7391b4019c8dae4311
7 changes: 6 additions & 1 deletion provisioner/terraform/testdata/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ minimize_diff() {
fi
fi
if [[ ${#sed_args[@]} -gt 0 ]]; then
sed -i '' "${sed_args[@]}" "$f"
# Handle macOS compat.
if sed -h 2>&1 | grep -q "\[-i extension\]"; then
sed -i '' "${sed_args[@]}" "$f"
else
sed -i'' "${sed_args[@]}" "$f"
fi
fi
done < <(
# Filter out known keys with autogenerated values.
Expand Down
Loading