Skip to content

Commit 7c66551

Browse files
committed
Fixed mlcre expansion
1 parent a4dfee9 commit 7c66551

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

automation/script/remote_run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ def regenerate_script_cmd(i):
252252

253253
remote_run_settings = i.get('remote_run_settings', {})
254254
fake_run = i.get('fake_run', False)
255+
remote_action = i.get('remote_action', 'run')
255256

256257
i_run_cmd = i['run_cmd']
257258

@@ -300,7 +301,7 @@ def regenerate_script_cmd(i):
300301
# docker_run_cmd_prefix = i.get('docker_run_cmd_prefix', '')
301302

302303
# Regenerate command from dictionary input
303-
run_cmd = 'mlcd' if i.get('docker') elif i.get('experiment') 'mlce' else 'mlcr'
304+
run_cmd = 'mlcd' if remote_action == 'docker' else ('mlce' if remote_action == 'experiment' else 'mlcr')
304305

305306
skip_input_for_fake_run = remote_run_settings.get(
306307
'skip_input_for_fake_run', [])

0 commit comments

Comments
 (0)