Skip to content

Commit 035dfac

Browse files
authored
Batch: fix job parameters definition (#8043)
1 parent 0a70aca commit 035dfac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

moto/batch/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def _add_parameters_to_command(self, command: Union[str, List[str]]) -> List[str
639639
return command
640640

641641
new_command = [
642-
command_part.replace(f"${param}", value)
642+
command_part.replace(f"Ref::{param}", value)
643643
for command_part in command
644644
for param, value in self.parameters.items()
645645
]

tests/test_batch/test_batch_jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ def test_submit_job_with_parameters():
11261126
"image": "busybox",
11271127
"vcpus": 1,
11281128
"memory": 512,
1129-
"command": ["sleep", "$seconds"],
1129+
"command": ["sleep", "Ref::seconds"],
11301130
},
11311131
parameters={"seconds": "0"},
11321132
)

0 commit comments

Comments
 (0)