From d901ba18d11063bd95843c0fbf8e6ec85b609663 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Mon, 4 Mar 2019 22:41:27 +0530 Subject: [PATCH] Correct usages of module.warn (#53268) Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/database/postgresql/postgresql_idx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/database/postgresql/postgresql_idx.py b/lib/ansible/modules/database/postgresql/postgresql_idx.py index 3338fd0563..ce4a24472d 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_idx.py +++ b/lib/ansible/modules/database/postgresql/postgresql_idx.py @@ -235,7 +235,7 @@ tablespace: type: str sample: 'ssd' query: - description: Query that was tried to be execute. + description: Query that was tried to be executed. returned: always type: str sample: 'CREATE INDEX CONCURRENTLY foo_idx ON test_table USING BTREE (id)' @@ -569,7 +569,7 @@ def main(): if not module.check_mode and not kw['valid'] and concurrent: db_connection.rollback() - module.warn(msg="Index %s is invalid! ROLLBACK" % idxname) + module.warn("Index %s is invalid! ROLLBACK" % idxname) if not concurrent: if module.check_mode: