Commit a610e89
authored
fix: remove unexpected side effect in get_srun_flags (#408)
Currently, if `nemo_run_dir` is falsy, this function will append mounts to the object mounts list, resulting in unexpected extension of the list with every call.
This function is called by materialize, which it turns out is even called by the `__repr__` and as such one would expect it not to have any side effects.
Signed-off-by: Jakub Bliźniuk <opliko@opliko.dev>1 parent d799b0e commit a610e89
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
206 | 207 | | |
207 | | - | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | 213 | | |
216 | 214 | | |
217 | 215 | | |
| |||
0 commit comments