Skip to content

Commit 4307e5f

Browse files
minor update in post_deploy
1 parent 524c3c3 commit 4307e5f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

content-gen/scripts/post_deploy.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,8 @@ def print_warning(text: str):
102102

103103
def run_az_command(args: List[str], capture_output: bool = True) -> subprocess.CompletedProcess:
104104
"""Run an Azure CLI command."""
105-
# Add --only-show-errors to suppress the welcome banner and info messages
106-
cmd = ["az", "--only-show-errors"] + args
107-
# shell=True required on Windows to find az.cmd
108-
return subprocess.run(cmd, capture_output=capture_output, text=True, shell=True)
105+
cmd = ["az"] + args
106+
return subprocess.run(cmd, capture_output=capture_output, text=True)
109107

110108

111109
def discover_resources(resource_group: str, app_name: Optional[str] = None, api_key: str = "") -> ResourceConfig:

0 commit comments

Comments
 (0)