From 02c9f708981462302245d7ae760499b90ec49b14 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Fri, 15 Feb 2019 09:07:15 -0800 Subject: [PATCH] Fix sanity test failures (pep8). --- lib/ansible/modules/database/mysql/mysql_replication.py | 3 ++- lib/ansible/modules/database/mysql/mysql_variables.py | 2 +- lib/ansible/modules/database/postgresql/postgresql_db.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/database/mysql/mysql_replication.py b/lib/ansible/modules/database/mysql/mysql_replication.py index b29838b2ba8..16f2f175538 100644 --- a/lib/ansible/modules/database/mysql/mysql_replication.py +++ b/lib/ansible/modules/database/mysql/mysql_replication.py @@ -200,7 +200,8 @@ def main(): login_host=dict(type='str', default='localhost'), login_port=dict(type='int', default=3306), login_unix_socket=dict(type='str'), - mode=dict(type='str', default='getslave', choices=['getmaster', 'getslave', 'changemaster', 'stopslave', 'startslave', 'resetslave', 'resetslaveall']), + mode=dict(type='str', default='getslave', choices=[ + 'getmaster', 'getslave', 'changemaster', 'stopslave', 'startslave', 'resetslave', 'resetslaveall']), master_auto_position=dict(type='bool', default=False), master_host=dict(type='str'), master_user=dict(type='str'), diff --git a/lib/ansible/modules/database/mysql/mysql_variables.py b/lib/ansible/modules/database/mysql/mysql_variables.py index b7e45eba6b8..334e9865a53 100644 --- a/lib/ansible/modules/database/mysql/mysql_variables.py +++ b/lib/ansible/modules/database/mysql/mysql_variables.py @@ -20,7 +20,7 @@ short_description: Manage MySQL global variables description: - Query / Set MySQL variables. version_added: 1.3 -author: +author: - Balazs Pocze (@banyek) options: variable: diff --git a/lib/ansible/modules/database/postgresql/postgresql_db.py b/lib/ansible/modules/database/postgresql/postgresql_db.py index 39acbed0f4a..ab69d6e977f 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_db.py +++ b/lib/ansible/modules/database/postgresql/postgresql_db.py @@ -47,7 +47,7 @@ options: is used as template. type: str session_role: - description: + description: - Switch to session_role after connecting. The specified session_role must be a role that the current login_user is a member of. - Permissions checking for SQL commands is carried out as though the session_role were the one that had logged in originally. type: str