Skip to content
Snippets Groups Projects
Commit c55f9192 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

quote postgres dbconn uri to avoid weird issues with special chars

parent 7c0d45d2
No related branches found
No related tags found
No related merge requests found
......@@ -190,7 +190,7 @@ def check_psql(db_conn: dict, query: str) -> tuple:
uri = "postgresql:///{}".format(db_conn["dbname"])
# format command
command = ["su -l postgres -c \"psql {} -c '{}'\"".format(uri, query)]
command = ["su -l postgres -c \"psql '{}' -c '{}'\"".format(uri, query)]
# execute
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment