Closed neonizer70 closed 1 year ago
Hi and welcome to our Content Developer Docs project! Thanks and congrats for opening your very first issue. If you know the fix, you may also submit a PR to fix the issue if you like!
Hey @neonizer70, I couldn't reproduce the issue, Also, from looking at the code it doesn't seem like a trailing space should affect the results that way. Can you attach logs of execution before the fix where it failed for you using the debug-mode=true argument in the playground CLI? Thanks in advance!
I have not received a response from you in the last two weeks, so I'm closing the bug. Thanks again.
Describe the problem
Issue using get-list-row two get multiple values from a single row. have a list with the name of CS-FW-Level. The list contains two headers CSFWhostname,CSFWlevel. I can get the value of the first header CSFWhostname the second gets null as header is not found CSFWlevel has a space after it. The code below fixed the issue
Screenshots
Environment
Suggested fix
and strip to the following def list_to_headers_and_lines(list_data, list_separator: str): lines_and_headers = [line.strip().split(list_separator) for line in list_data.split('\n')] headers = lines_and_headers[0] return headers, lines_and_headers[1:]