This commit is contained in:
Noam Landress 2023-03-29 12:31:04 +03:00
Родитель feb1fa3d86
Коммит c891620ee1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -706,7 +706,7 @@ def find_dcr_cloud_environment():
Use the agent config on the machine to determine the cloud environment we are running in
'''
global MACHINE_ENV
command_to_run = "if grep -q \"azure.cn\" {0}; then echo \"MK\"; elif grep -q \"azure.us\" {0}; then echo \"Gov\"; else echo \"Prod\"; fi".format(AGENT_CONF_FILE)
command_to_run = "if grep -qs \"azure.cn\" {0}; then echo \"MK\"; elif grep -qs \"azure.us\" {0}; then echo \"Gov\"; else echo \"Prod\"; fi".format(AGENT_CONF_FILE)
try:
command_result, command_result_err = subprocess.Popen(command_to_run, shell=True,
stdout=subprocess.PIPE,