File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1577,14 +1577,14 @@ def from_local_script(
1577
1577
+ f"python3 -m { python_packager .module_name } " ,
1578
1578
]
1579
1579
1580
+ if args :
1581
+ command [- 1 ] += " " + " " .join (args )
1582
+
1580
1583
spec ["container_spec" ] = {
1581
1584
"image_uri" : container_uri ,
1582
1585
"command" : command ,
1583
1586
}
1584
1587
1585
- if args :
1586
- spec ["container_spec" ]["args" ] = args
1587
-
1588
1588
if environment_variables :
1589
1589
spec ["container_spec" ]["env" ] = [
1590
1590
{"name" : key , "value" : value }
Original file line number Diff line number Diff line change @@ -937,8 +937,8 @@ def test_create_from_local_script_custom_container_with_all_args(
937
937
enable_autolog = True ,
938
938
)
939
939
940
- expected_container_spec = _TEST_CONTAINER_SPEC
941
- expected_container_spec .args = _TEST_RUN_ARGS
940
+ expected_container_spec = copy . deepcopy ( _TEST_CONTAINER_SPEC )
941
+ expected_container_spec .command [ - 1 ] += " " + " " . join ( _TEST_RUN_ARGS )
942
942
expected_container_spec .env = [
943
943
{"name" : key , "value" : value }
944
944
for key , value in test_constants .TrainingJobConstants ._TEST_ENVIRONMENT_VARIABLES .items ()
You can’t perform that action at this time.
0 commit comments