add flag to command
This commit is contained in:
Родитель
feb1fa3d86
Коммит
c891620ee1
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче