Skip to content
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

allow empty list for postgresql_default_privileges #118

Merged

Conversation

alec-rabold
Copy link
Contributor

Allows passing in an empty list to the privileges argument for the postgresql_default_privileges resource. This should allow the resource to be used to only revoke certain privileges (e.g. functions/procedures).

Closes #117

Copy link
Owner

@cyrilgdn cyrilgdn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @alec-rabold ,

Thanks a lot for your work on this 👍

I allowed myself to duplicate the step you created in the tests to add it also at the end, so it asserts that privileges are correctly revoked.
I also merged master to trigger the recently added golangci check.

@cyrilgdn cyrilgdn merged commit 1df64cf into cyrilgdn:master Aug 22, 2021
@cyrilgdn
Copy link
Owner

@alec-rabold This has just been released in v1.14.0

@alec-rabold alec-rabold deleted the feature/empty-list-default-privileges branch August 23, 2021 02:44
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.

postgresql_default_privileges should allow empty list of privileges
2 participants