Fix postgres_privileges for PostgreSQL >= 17#69003
Conversation
PostgreSQL 17 introduced a new table privilege of MAINTAIN which was not present in _PRIVILEGES_MAP, causing a KeyError when using the state postgres_privileges.present.
|
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here's some information that may help as you continue your Salt journey. There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
What does this PR do?
Adds compatibility with PostgreSQL 17 and above
What issues does this PR fix or reference?
PostgreSQL 17 introduced a new table privilege of MAINTAIN which was not present in _PRIVILEGES_MAP, causing a KeyError when using the state postgres_privileges.present.
Previous Behavior
using the state postgres_privileges.present would crash with a KeyError
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes