)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"change_message_id":"c855ba0aded9bcbff6e4f5419c6e24eb87f22e2f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Dimitrios Markou \u003cmardim@intracom-telecom.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-11-16 12:32:49 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix inconsistencies"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I4384ee1e6cd6c7f423ef4b2b5eedc1a05b3d9862"},{"line_number":10,"context_line":"Signed-off-by: Dimitrios Markou \u003cmardim@intracom-telecom.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1f485f77_17b0c842","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":19},"updated":"2017-11-16 10:36:11.000000000","message":"Can you be a bit more verbose on what the problem was and how your patch fixes it?","commit_id":"50b6e86d8e9c21528df1224c03b40022b6639145"},{"author":{"_account_id":25505,"name":"Dimitrios Markou","email":"dimitrios.markou@att.com","username":"mardim"},"change_message_id":"ca0925c538ef658adb3e865d2ac1af514199a6ee","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Dimitrios Markou \u003cmardim@intracom-telecom.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-11-16 12:32:49 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix inconsistencies"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I4384ee1e6cd6c7f423ef4b2b5eedc1a05b3d9862"},{"line_number":10,"context_line":"Signed-off-by: Dimitrios Markou \u003cmardim@intracom-telecom.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1f485f77_578080bf","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":19},"in_reply_to":"1f485f77_17b0c842","updated":"2017-11-16 10:57:47.000000000","message":"Done","commit_id":"50b6e86d8e9c21528df1224c03b40022b6639145"},{"author":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"change_message_id":"c640435918307c6492d52957e1dd1093038fadb9","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Dimitrios Markou \u003cmardim@intracom-telecom.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-11-16 12:41:55 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix inconsistencies"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"1. The \u0027neutron_services[\u0027neutron-server\u0027][\u0027group\u0027]\u0027 returns"},{"line_number":10,"context_line":"   a string which is not iterable thus we replaced this with"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1f485f77_17b3289a","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":19},"updated":"2017-11-16 11:01:13.000000000","message":"The title needs fixing too\n\nPlease see \"Commit guidelines\" from https://git-scm.com/book/en/v2/Distributed-Git-Contributing-to-a-Project","commit_id":"7957544de41b02f87e7475c28a6f3bbd4ea06c60"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"eac1facb8f76d046f29d3d7bcd88019898b527ee","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Dimitrios Markou \u003cmardim@intracom-telecom.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-11-16 14:10:40 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix OVS manager configuration inconsistencies which are related to ODL"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"1. The \u0027neutron_services[\u0027neutron-server\u0027][\u0027group\u0027]\u0027 returns"},{"line_number":10,"context_line":"   a string which is not iterable thus we replaced this with"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1f485f77_2b4c7d40","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":70},"updated":"2017-11-16 12:23:51.000000000","message":"You could just say \u0027Fix ovs_manager_list derivation\u0027, but this is fine too.","commit_id":"9ed266e6636dd47ab201c913ffc94237bd79a6f0"}],"vars/main.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"02e45a46fd5a7a397ebfc2daa91bea29e2bfea67","unresolved":false,"context_lines":[{"line_number":241,"context_line":""},{"line_number":242,"context_line":"ovs_manager_list: |-"},{"line_number":243,"context_line":"  {% set ovs_managers_odls \u003d [] %}"},{"line_number":244,"context_line":"  {% for host in groups[neutron_services[\u0027neutron-server\u0027][\u0027group\u0027]] %}"},{"line_number":245,"context_line":"     {% set odl_ip_address \u003d  hostvars[host][\u0027ansible_host\u0027]|string %}"},{"line_number":246,"context_line":"     {% set _ \u003d ovs_managers_odls.append(\u0027tcp:\u0027 + odl_ip_address + \u0027:6640\u0027) %}"},{"line_number":247,"context_line":"  {% endfor %}"},{"line_number":248,"context_line":"  {{ ovs_managers_odls | join(\u0027 \u0027) }}"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"1f485f77_8edeb6d7","line":245,"range":{"start_line":244,"start_character":0,"end_line":245,"end_character":70},"updated":"2017-11-17 19:08:18.000000000","message":"Is there a smarter way that we can extract this information?\n\nPerhaps the role should have a default, then we give this information to the role via group_vars in the integrated repo instead? That allows us to do the var derivation in localhost, then pull them from there in group_vars as we\u0027re doing for some other things. It\u0027s more efficient, but much more abstract which isn\u0027t all that great.","commit_id":"9ed266e6636dd47ab201c913ffc94237bd79a6f0"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"b2bcf7fa2486d75c10d9d805b15b450d22e1b193","unresolved":false,"context_lines":[{"line_number":241,"context_line":""},{"line_number":242,"context_line":"ovs_manager_list: |-"},{"line_number":243,"context_line":"  {% set ovs_managers_odls \u003d [] %}"},{"line_number":244,"context_line":"  {% for host in groups[neutron_services[\u0027neutron-server\u0027][\u0027group\u0027]] %}"},{"line_number":245,"context_line":"     {% set odl_ip_address \u003d  hostvars[host][\u0027ansible_host\u0027]|string %}"},{"line_number":246,"context_line":"     {% set _ \u003d ovs_managers_odls.append(\u0027tcp:\u0027 + odl_ip_address + \u0027:6640\u0027) %}"},{"line_number":247,"context_line":"  {% endfor %}"},{"line_number":248,"context_line":"  {{ ovs_managers_odls | join(\u0027 \u0027) }}"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"1f485f77_79069822","line":245,"range":{"start_line":244,"start_character":0,"end_line":245,"end_character":70},"in_reply_to":"1f485f77_2d8c67d5","updated":"2017-11-18 17:27:47.000000000","message":"++ agreed w/ Jimmy except use ~ as string concat operator:\n\novs_managers_odls.append(\u0027tcp:\u0027 + odl_ip_address + \u0027:6640\u0027)\nshould be:\novs_managers_odls.append(\u0027tcp:\u0027 ~ odl_ip_address ~ \u0027:6640\u0027)","commit_id":"9ed266e6636dd47ab201c913ffc94237bd79a6f0"},{"author":{"_account_id":14805,"name":"Jimmy McCrory","email":"jimmy.mccrory@gmail.com","username":"jimmy-mccrory"},"change_message_id":"8c7a5a8cd005839d7477a4096e0d0311ae6ea971","unresolved":false,"context_lines":[{"line_number":241,"context_line":""},{"line_number":242,"context_line":"ovs_manager_list: |-"},{"line_number":243,"context_line":"  {% set ovs_managers_odls \u003d [] %}"},{"line_number":244,"context_line":"  {% for host in groups[neutron_services[\u0027neutron-server\u0027][\u0027group\u0027]] %}"},{"line_number":245,"context_line":"     {% set odl_ip_address \u003d  hostvars[host][\u0027ansible_host\u0027]|string %}"},{"line_number":246,"context_line":"     {% set _ \u003d ovs_managers_odls.append(\u0027tcp:\u0027 + odl_ip_address + \u0027:6640\u0027) %}"},{"line_number":247,"context_line":"  {% endfor %}"},{"line_number":248,"context_line":"  {{ ovs_managers_odls | join(\u0027 \u0027) }}"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"1f485f77_2d8c67d5","line":245,"range":{"start_line":244,"start_character":0,"end_line":245,"end_character":70},"in_reply_to":"1f485f77_8edeb6d7","updated":"2017-11-17 20:42:22.000000000","message":"{% for odl_ip_address in groups[neutron_services[\u0027neutron-server\u0027][\u0027group\u0027]] | map(\u0027extract\u0027, hostvars, \u0027ansible_host\u0027) | list -%}\n  {% set _ \u003d ovs_managers_odls.append(\u0027tcp:\u0027 + odl_ip_address + \u0027:6640\u0027) %}\n{%- endfor %}\n{{ ovs_managers_odls | join(\u0027 \u0027) }}\n\nOne less line and removes some extra whitespace, but that does pretty much the same thing. I think it looks alright as is, the whitespace at the beginning could be removed, but it\u0027s not really hurting anything.\n\nhttp://docs.ansible.com/ansible/latest/playbooks_filters.html#extracting-values-from-containers","commit_id":"9ed266e6636dd47ab201c913ffc94237bd79a6f0"}]}
