postgresql_subscription: fix typo in module.warn method name (#64583)

* postgresql_subscription: fix typo in module.warn method name

* postgresql_subscription: fix typo in module.warn method name, add changelog
This commit is contained in:
Andrey Klychkov 2019-11-08 10:54:16 +03:00 committed by Felix Fontein
parent 2039bf45fe
commit 5e3fda5582
2 changed files with 7 additions and 5 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- postgresql_subscription - fix typo in module.warn method name (https://github.com/ansible/ansible/pull/64583).

View file

@ -639,17 +639,17 @@ def main():
relinfo = module.params['relinfo']
if state == 'present' and cascade:
module.warm('parameter "cascade" is ignored when state is not absent')
module.warn('parameter "cascade" is ignored when state is not absent')
if state != 'present':
if owner:
module.warm("parameter 'owner' is ignored when state is not 'present'")
module.warn("parameter 'owner' is ignored when state is not 'present'")
if publications:
module.warm("parameter 'publications' is ignored when state is not 'present'")
module.warn("parameter 'publications' is ignored when state is not 'present'")
if connparams:
module.warm("parameter 'connparams' is ignored when state is not 'present'")
module.warn("parameter 'connparams' is ignored when state is not 'present'")
if subsparams:
module.warm("parameter 'subsparams' is ignored when state is not 'present'")
module.warn("parameter 'subsparams' is ignored when state is not 'present'")
# Connect to DB and make cursor object:
pg_conn_params = get_conn_params(module, module.params)