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
pull/63969/head
Andrey Klychkov 5 years ago committed by Felix Fontein
parent 2039bf45fe
commit 5e3fda5582

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

@ -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)

Loading…
Cancel
Save