New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'list' object has no attribute 'splitlines' when using multiple choice questions in survey #513
Comments
Hello, What is the separator of your list? Maybe a workaround for you: we use a list splitted by line breaks(\n) for our usage. Thank you! Regards |
Hello @EliasBoulharts , the survey is made into AWX so I assume that AWX choose its own separator. Here's the parts with a multiple choices questions using the AWX API call:
Tkx for the help |
Ok, it seems that they change the behavior in this PR. The old behavior was: {
"question_name": "multiple",
"question_description": "",
"required": true,
"type": "multiplechoice",
"variable": "multiple",
"min": 0,
"max": 1024,
"default": "one",
"choices": "'one'\n'two'\n'three'",
"new_question": true
} We will work on a patch for the next release. A workaround is to update your survey with a post to force a string splitted by break line. |
Ok thanks for the quick reply. I will try to update the survey using the API to force a string splitted by break line. |
Done and merged in dev branch. |
Merged in master. It is available in the latest release. |
Describe the bug
Squest throw an exception when an AWX survey have either 'multiple select' or 'multiple select multiple' type of field.
To Reproduce
Steps to reproduce the behavior:
'list' object has no attribute 'splitlines'
Expected behavior
Survey can be displayed
Errors
Traces
Version
The text was updated successfully, but these errors were encountered: