Skip to content
Snippets Groups Projects
Commit c58b2624 authored by joe's avatar joe
Browse files

correct quotation of commands

parent a268e25c
Branches
No related tags found
No related merge requests found
......@@ -136,8 +136,8 @@ def process_rm_db(blog_id, value, progress):
tables = ', '.join(db.tables)
drop_db = ['mysql', db.old_options, db.old.db, '-NBe',
'\\"DROP TABLE %s\\"' % tables]
cmd = ['ssh', 'root@%s' % value['old_host'], '"%s"' % ' '.join(drop_db)]
'"DROP TABLE %s"' % tables]
cmd = ['ssh', 'root@%s' % value['old_host'], '%s' % ' '.join(drop_db)]
try:
execute(cmd)
except (subprocess.CalledProcessError, OSError), e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment