Pep8 fixes for mysql module (#23923)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2017-04-26 17:26:35 +05:30 committed by John R Barker
parent 9d5c399313
commit 9fbbb5e10f
5 changed files with 63 additions and 42 deletions

View file

@ -201,7 +201,7 @@ def changemaster(cursor, chm, chm_params):
def main():
module = AnsibleModule(
argument_spec = dict(
argument_spec=dict(
login_user=dict(default=None),
login_password=dict(default=None, no_log=True),
login_host=dict(default="localhost"),
@ -290,7 +290,7 @@ def main():
module.exit_json(**status)
elif mode in "changemaster":
chm=[]
chm = []
chm_params = {}
result = {}
if master_host:
@ -347,7 +347,7 @@ def main():
except Exception:
e = get_exception()
module.fail_json(msg='%s. Query == CHANGE MASTER TO %s' % (e, chm))
result['changed']=True
result['changed'] = True
module.exit_json(**result)
elif mode in "startslave":
started = start_slave(cursor)