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

corrected remote mysql call

parent 97fdc36a
Branches
Tags v0.1.2
No related merge requests found
......@@ -56,9 +56,9 @@ class MysqlNoblogs(object):
def find_tables(self, blog_id):
find_tables =['mysql', self.options(self.old), self.old.db, '-NBe',
'\\"show tables like \'wp\\_%s\\_%%\'\\"' % blog_id]
"'show tables like \"wp\\_%s\\_%%\"'" % blog_id]
cmd = ['ssh', 'root@%s' % self.old.host,
'"%s"' % ' '.join(find_tables)]
"%s" % ' '.join(find_tables)]
log.debug('Calling %s', ' '.join(cmd))
raw_tables = subprocess.check_output(cmd)
self.tables = [ t.strip() for t in raw_tables.splitlines()]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment