Commit 6481deb
committed
ibmcloud: fix toList empty-whitespace handling
The toList helper did not correctly handle inputs containing empty
elements or values with surrounding whitespace. Comma‑separated lists
with such formatting caused parsing issues for all functions that rely
on the custom types using this utility.
This change adds trimming logic and skips empty items entirely,
ensuring that the returned list contains only meaningful, sanitized
values.
Signed-off-by: Patrik Fodor <[email protected]>1 parent d3d3ede commit 6481deb
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
58 | 68 | | |
59 | | - | |
| 69 | + | |
| 70 | + | |
60 | 71 | | |
61 | 72 | | |
62 | 73 | | |
| |||
0 commit comments