Skip to content

Commit

Permalink
missing mysql -e
Browse files Browse the repository at this point in the history
  • Loading branch information
Reception123 authored Jan 5, 2024
1 parent c6c5bdb commit 9c5c2d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mediawiki/files/cookbooks/rename-wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


def get_db_cluster(oldwiki_db):
command = f"salt-ssh -E 'db131*' cmd.run 'USE mhglobal; SELECT wiki_dbcluster FROM cw_wikis WHERE wiki_dbname = \"{oldwiki_db}\"'"
command = f"salt-ssh -E 'db131*' cmd.run 'mysql -e "USE mhglobal; SELECT wiki_dbcluster FROM cw_wikis WHERE wiki_dbname = \"{oldwiki_db}\"'"
result = subprocess.run(command, shell=True, stdout=subprocess.PIPE, text=True)
cluster_name = result.stdout.strip()
return db_clusters.get(cluster_name)
Expand Down

0 comments on commit 9c5c2d2

Please sign in to comment.