From 5e3fda55825f66340ca459dda128022640619e5e Mon Sep 17 00:00:00 2001 From: Andrey Klychkov Date: Fri, 8 Nov 2019 10:54:16 +0300 Subject: [PATCH] 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 --- ...postgresql_subscription_fix_typo_in_module_warn.yml | 2 ++ .../database/postgresql/postgresql_subscription.py | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 changelogs/fragments/64583-postgresql_subscription_fix_typo_in_module_warn.yml diff --git a/changelogs/fragments/64583-postgresql_subscription_fix_typo_in_module_warn.yml b/changelogs/fragments/64583-postgresql_subscription_fix_typo_in_module_warn.yml new file mode 100644 index 00000000000..9888c96a83e --- /dev/null +++ b/changelogs/fragments/64583-postgresql_subscription_fix_typo_in_module_warn.yml @@ -0,0 +1,2 @@ +bugfixes: +- postgresql_subscription - fix typo in module.warn method name (https://github.com/ansible/ansible/pull/64583). diff --git a/lib/ansible/modules/database/postgresql/postgresql_subscription.py b/lib/ansible/modules/database/postgresql/postgresql_subscription.py index 87fe1c80b59..25bdc0810f1 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_subscription.py +++ b/lib/ansible/modules/database/postgresql/postgresql_subscription.py @@ -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)