mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Fix invalid string escape sequences.
This commit is contained in:
parent
6ac9d05de6
commit
9735a70059
49 changed files with 81 additions and 81 deletions
|
@ -126,7 +126,7 @@ from ansible.module_utils._text import to_native
|
|||
|
||||
|
||||
def db_exists(cursor, db):
|
||||
res = cursor.execute("SHOW DATABASES LIKE %s", (db.replace("_", "\_"),))
|
||||
res = cursor.execute("SHOW DATABASES LIKE %s", (db.replace("_", r"\_"),))
|
||||
return bool(res)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue