)]}'
{"roles/create-reproducer-script/templates/reproducer-quickstart.sh.j2":[{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"06a73ea36978ca60b79efae769254c0352072e0e","unresolved":false,"context_lines":[{"line_number":240,"context_line":"scp ${SSH_OPTS}  $WORKSPACE/nodes.json zuul@$ansible_host:/home/zuul/"},{"line_number":241,"context_line":"{% endif %}"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"{% set jobtype \u003d toci_jobtype.replace(\u0027periodic-\u0027,\u0027\u0027).split(\u0027-\u0027)[0] %}"},{"line_number":244,"context_line":"{% set types \u003d [ \"multinode\", \"singlenode\", \"standalone\" ] %}"},{"line_number":245,"context_line":"{% if jobtype in types %}"},{"line_number":246,"context_line":""}],"source_content_type":"text/x-jinja2","patch_set":2,"id":"5f7c97a3_b83b2899","line":243,"updated":"2018-06-21 12:39:31.000000000","message":"I think you can merge these two lines using a regex_search jinja/ansible filter e.g. set topology \u003d jobtype | regex_search(\u0027(multinode|singlenode|standalone)\u0027). We will never have to worry about positions anymore.","commit_id":"476bc1ffcb3c5d02a5e3866b69b5e9e11fd3978e"},{"author":{"_account_id":10022,"name":"Gabriele Cerami","email":"gcerami@redhat.com","username":"panda"},"change_message_id":"1479397621bc52a4e711f912969bd5c13f34e18d","unresolved":false,"context_lines":[{"line_number":242,"context_line":""},{"line_number":243,"context_line":"{% set jobtype \u003d toci_jobtype.replace(\u0027periodic-\u0027,\u0027\u0027).split(\u0027-\u0027)[0] %}"},{"line_number":244,"context_line":"{% set types \u003d [ \"multinode\", \"singlenode\", \"standalone\" ] %}"},{"line_number":245,"context_line":"{% if jobtype in types %}"},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"if [[ \"$LIBVIRT\" \u003d\u003d \"1\" ]]; then"},{"line_number":248,"context_line":"    echo \"Running a libvirt reproducer ...\""}],"source_content_type":"text/x-jinja2","patch_set":2,"id":"5f7c97a3_1809fcdb","line":245,"updated":"2018-06-21 12:44:00.000000000","message":"I don\u0027t think jinjia templates support the any function","commit_id":"476bc1ffcb3c5d02a5e3866b69b5e9e11fd3978e"},{"author":{"_account_id":27898,"name":"Quique Llorente","email":"ellorent@redhat.com","username":"quiquell"},"change_message_id":"513ddfe903d209d8dab479998e01497af98265aa","unresolved":false,"context_lines":[{"line_number":242,"context_line":""},{"line_number":243,"context_line":"{% set jobtype \u003d toci_jobtype.replace(\u0027periodic-\u0027,\u0027\u0027).split(\u0027-\u0027)[0] %}"},{"line_number":244,"context_line":"{% set types \u003d [ \"multinode\", \"singlenode\", \"standalone\" ] %}"},{"line_number":245,"context_line":"{% if jobtype in types %}"},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"if [[ \"$LIBVIRT\" \u003d\u003d \"1\" ]]; then"},{"line_number":248,"context_line":"    echo \"Running a libvirt reproducer ...\""}],"source_content_type":"text/x-jinja2","patch_set":2,"id":"5f7c97a3_3845d844","line":245,"updated":"2018-06-21 12:30:53.000000000","message":"We can remove totally the replace and split using some list comprehension: \n\n\n{% if any(type in toci_jobtype for type in [ \"multinode\", \"singlenode\", \"standalone\" ]) }%:","commit_id":"476bc1ffcb3c5d02a5e3866b69b5e9e11fd3978e"}]}
