Skip to content

Conversation

@steamedEggMaster
Copy link
Contributor

What

Replaced all instances of optional(string, ) with optional(string, null) across the postgresql and mysql modules.

Why

While the syntax optional(string, ) does not currently cause errors in Terraform and works as expected, it is not officially valid HCL. The presence of the trailing comma can cause confusion for contributors or users reading the code, especially those unfamiliar with how Terraform interprets it.

This change aims to improve clarity and avoid potential misunderstandings, without introducing any functional changes.

Testing

All modules passed validation:

terraform init && terraform validate

@google-cla
Copy link

google-cla bot commented Apr 17, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@imrannayer
Copy link
Collaborator

@steamedEggMaster thx for the PR. can u plz sign CLA?

@steamedEggMaster
Copy link
Contributor Author

@imrannayer I’ve signed the CLA. Let me know if anything else is needed. Thanks!

@imrannayer
Copy link
Collaborator

waiting on fix #726 merge

@imrannayer
Copy link
Collaborator

/gcbrun

3 similar comments
@imrannayer
Copy link
Collaborator

/gcbrun

@imrannayer
Copy link
Collaborator

/gcbrun

@imrannayer
Copy link
Collaborator

/gcbrun

@imrannayer imrannayer closed this Apr 23, 2025
@imrannayer imrannayer reopened this Apr 23, 2025
@imrannayer
Copy link
Collaborator

/gcbrun

1 similar comment
@imrannayer
Copy link
Collaborator

/gcbrun

@imrannayer imrannayer merged commit 056e436 into terraform-google-modules:main Apr 24, 2025
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants