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 aeb9d4e commit 52d5c9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions miraheze/salt/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import subprocess
import sys
import os
from typing import Optional, TypedDict


class DbClusterMap(TypedDict):
c1: str
c2: str
Expand All @@ -23,7 +23,6 @@ def generate_salt_command(cluster: str, command: str) -> str:
return f'salt-ssh -E "{cluster}" cmd.run "{command}"'



def execute_salt_command(salt_command: str, shell: bool = True, stdout: Optional[int] = None, text: Optional[bool] = None) -> Optional[subprocess.CompletedProcess]:
response = input(f'EXECUTE (type c(continue), s(kip), a(bort): {salt_command}')
if response in ['c', 'continue']:
Expand Down

0 comments on commit 52d5c9b

Please sign in to comment.