Traceback (most recent call last):

 "/root/.ansible/tmp/ansible-tmp-1418728948.93-89965021745143/mysql_replication", line 1949, in <module>
main()

 "/root/.ansible/tmp/ansible-tmp-1418728948.93-89965021745143/mysql_replication", line 367, in main
changemaster(cursor, chm, chm_params)

 "/root/.ansible/tmp/ansible-tmp-1418728948.93-89965021745143/mysql_replication", line 165, in changemaster
cursor.execute(query, chm_params)

 "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
self.errorhandler(self, exc, value)

 "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''130779818'' at line 1")
Traceback (most recent call last):


 "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner

self.run()


 "/usr/local/lib/python3.6/threading.py", line 864, in run

self._target(*self._args, **self._kwargs)


 "/opt/py3/lib/python3.6/site-packages/jms/tasks.py", line 38, in handler

self.action(data)


 "/opt/py3/lib/python3.6/site-packages/jms/service.py", line 353, in send_command_log

d['output'] = base64.b64encode(d['output']).decode("utf-8")


 "/usr/local/lib/python3.6/base64.py", line 58, in b64encode

encoded = binascii.b2a_base64(s, newline=False)
TypeError: a bytes-like object is required, not 'str'
