community.postgresql icon indicating copy to clipboard operation
community.postgresql copied to clipboard

String value pulled from postgres and present in settings dictionary compared incorrectly

Open badfiles opened this issue 2 years ago • 1 comments

SUMMARY

String value pulled from postgres and present in settings dictionary compared incorrectly

ISSUE TYPE
  • Bug Report
COMPONENT NAME

plugins/modules/postgresql_set.py

ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION

OS / ENVIRONMENT

not depends

STEPS TO REPRODUCE
      - name: shared_preload_libraries
        value: 'pg_stat_statements,pg_stat_kcache,pg_background'

EXPECTED RESULTS

resulting config

...
shared_preload_libraries = 'pg_stat_statements, pg_stat_kcache, pg_background'
...

should be no change and restart on second run w/o changes

ACTUAL RESULTS

value: 'pg_stat_statements,pg_stat_kcache,pg_background'

should pass the prettyfier before being compared with effective value

badfiles avatar Oct 04 '23 16:10 badfiles

@badfiles hello, thanks for reporting the issue! I'll put the help wanted label and a link to our quick start dev guide for anyone interested. Thanks

Andersson007 avatar Oct 10 '23 13:10 Andersson007