mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-21 21:41:44 -07:00
Refactor postgresql modules (#291)
* Refactor postgresql_idx to simplify code Have refactored the postgresql_idx module to: * Use the class schema in the drop function rather than a passed in one * Remove the if/else and just return the bool in the drop and create functions * Refactor postgresql_ext module Have refactored the postgresql_ext module to: * Remove an unused exception * Simplify logic in the create and update functions * Use list comprehension to simplify getting the available version * Refactor postgresql_user_obj_stat_info module Have refactored the postgresql_user_obj_stat_info module to: * Simplify the logic in some of the functions * Reduce duplicate code * Add changelog fragment
This commit is contained in:
parent
2319d928c4
commit
51b8e79203
4 changed files with 57 additions and 75 deletions
5
changelogs/fragments/291-postgresql_refactor_modules.yml
Normal file
5
changelogs/fragments/291-postgresql_refactor_modules.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
minor_changes:
|
||||
- postgresql_ext - refactor to simplify and remove dead code (https://github.com/ansible-collections/community.general/pull/291)
|
||||
- postgresql_idx - refactor to simplify code (https://github.com/ansible-collections/community.general/pull/291)
|
||||
- postgresql_user_obj_stat_info - refactor to simplify code (https://github.com/ansible-collections/community.general/pull/291)
|
Loading…
Add table
Add a link
Reference in a new issue