Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RhinosF1 authored May 18, 2024
1 parent 5f3f30f commit 45bf879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miraheze/salt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def execute_salt_command(salt_command: str, shell: bool = True, stdout: Optional
def get_db_cluster(wiki: str) -> str:
db_query = f"SELECT wiki_dbcluster FROM mhglobal.cw_wikis WHERE wiki_dbname = '{wiki}'"
command = generate_salt_command('db171', f"sudo -i mysql --skip-column-names -e '{db_query}'")
result = execute_salt_command(salt_command=commandd, stdout=subprocess.PIPE, text=True)
result = execute_salt_command(salt_command=command, stdout=subprocess.PIPE, text=True)
if result:
cluster_name = result.stdout.strip()
cluster_data = cluster_name.split('\n')
Expand Down

0 comments on commit 45bf879

Please sign in to comment.