1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/library/database
Chao Luan 134c449cf6 Remove extra quote from the mysqldump password argument
The mysqldb Ansible module will fail if the state specified is import or dump with a '1045: Access Denied' mysql error for complex passwords.

This is caused by the extra quote around the '--password' argument to mysqldump, as pipes.quotes already quotes the password string.

>>> "--password='%s'" % pipes.quote('simple')
"--password='simple'"

>>> "--password='%s'" % pipes.quote('c0mplexp@ssword!')
"--password=''c0mplexp@ssword!''"

>>> "--password='%s'" % pipes.quote('password with space')
"--password=''password with space''"
2014-04-01 23:52:08 +11:00
..
mongodb_user Add idempotency to mongodb_user module 2014-02-04 13:56:35 +02:00
mysql_db Remove extra quote from the mysqldump password argument 2014-04-01 23:52:08 +11:00
mysql_replication MASTER_PORT variable for CHANGE MASTER TO command can only accept integer value 2014-03-06 12:19:54 +08:00
mysql_user Micro-optimization: replace s.find(x)!=-1 with x in s 2014-03-16 13:10:28 -04:00
mysql_variables Add support for string values 2014-02-12 12:44:28 +01:00
postgresql_db Added port documentation to postgresql_db and postgresql_user 2014-02-07 18:27:55 +02:00
postgresql_privs Don't use keyword error in encode 2014-03-06 13:33:53 +00:00
postgresql_user Bulk update of choices=BOOLEANS to type='bool' 2014-03-11 22:56:51 -05:00
redis Update comments about redis config. 2014-03-19 18:15:52 -04:00
riak Fixes various typos introduced in a9017af2bb. 2014-03-12 21:26:16 -04:00