Commit d57f083
committed
MOD-14486: Fix crash on odd word count in space-separated moduleArgs
fix_modulesArgs crashed with sys.exit(1) when a space-separated
moduleArgs string had an odd number of words. This is a valid scenario
when module args have single-word flags or multi-word values.
Instead of crashing, fall back to treating the string as a single arg
(the pre-v0.7.22 behavior) when the word count is odd.1 parent 0f50113 commit d57f083
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 127 | + | |
| 128 | + | |
132 | 129 | | |
| 130 | + | |
133 | 131 | | |
134 | 132 | | |
135 | 133 | | |
| |||
0 commit comments