)]}'
{"id":"openstack%2Fopenstack-ansible-openstack_hosts~536842","triplet_id":"openstack%2Fopenstack-ansible-openstack_hosts~master~I23d22cbf4317a3c9228bcdb6b3e9e6c2238fcfb7","project":"openstack/openstack-ansible-openstack_hosts","branch":"master","topic":"fix-update-host-script-tabs","hashtags":[],"change_id":"I23d22cbf4317a3c9228bcdb6b3e9e6c2238fcfb7","subject":"templates: hostfile-setup: Improve regexp for host entries","status":"MERGED","created":"2018-01-23 14:18:58.000000000","updated":"2018-01-24 05:28:54.000000000","submitted":"2018-01-24 05:28:54.000000000","submitter":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"submission_id":"536842-1516771734949-43fe85dd","meta_rev_id":"a23ffe26b37189ae70db0b841b7c1e32d2b3c72e","_number":536842,"virtual_id_number":536842,"owner":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"all":[{"value":0,"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},{"value":0,"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},{"value":2,"date":"2018-01-24 05:28:54.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-2":"Fails","-1":"Doesn\u0027t seem to work"," 0":"No score","+1":"Works for me","+2":"Verified"},"description":"","default_value":0,"optional":true},"Code-Review":{"approved":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"all":[{"value":2,"date":"2018-01-24 04:52:39.000000000","_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},{"value":2,"date":"2018-01-23 21:49:38.000000000","_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},{"value":0,"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-2":"Do not merge","-1":"This patch needs further work before it can be merged"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me (core reviewer)"},"description":"","default_value":0,"optional":true},"Workflow":{"approved":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"all":[{"value":1,"date":"2018-01-24 04:52:39.000000000","_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},{"value":0,"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},{"value":0,"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true},"Backport-Candidate":{"all":[{"value":0,"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},{"value":0,"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},{"value":0,"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-1":"Not A Backport Candidate"," 0":"Backport Review Needed","+1":"Proposed Backport"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2018-01-23 21:49:38.000000000","updated_by":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"reviewer":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"state":"REVIEWER"},{"updated":"2018-01-24 04:52:39.000000000","updated_by":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"reviewer":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"state":"REVIEWER"},{"updated":"2018-01-24 05:28:54.000000000","updated_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"reviewer":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"state":"REVIEWER"}],"messages":[{"id":"ffbdf71813aba6a0812446d2c750b95271f09583","author":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"date":"2018-01-23 14:18:58.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"a49c0cdbf7383f0b686a41539a02c54a216317c2","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2018-01-23 15:16:54.000000000","message":"Patch Set 1: Verified+1\n\nBuild succeeded (check pipeline).\n\n- build-openstack-sphinx-docs http://logs.openstack.org/42/536842/1/check/build-openstack-sphinx-docs/8b71b53/html/ : SUCCESS in 3m 05s\n- openstack-ansible-linters http://logs.openstack.org/42/536842/1/check/openstack-ansible-linters/50a6a2e/ : SUCCESS in 8m 53s\n- openstack-ansible-functional-centos-7 http://logs.openstack.org/42/536842/1/check/openstack-ansible-functional-centos-7/0f08bad/ : SUCCESS in 10m 36s\n- openstack-ansible-functional-opensuse-423 http://logs.openstack.org/42/536842/1/check/openstack-ansible-functional-opensuse-423/5e015be/ : SUCCESS in 8m 11s\n- openstack-ansible-functional-ubuntu-xenial http://logs.openstack.org/42/536842/1/check/openstack-ansible-functional-ubuntu-xenial/2823251/ : SUCCESS in 7m 14s","accounts_in_message":[],"_revision_number":1},{"id":"ddb506b2a46f09695071ea53476ea99caeef8208","author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"date":"2018-01-23 21:49:38.000000000","message":"Patch Set 1: Code-Review+2","accounts_in_message":[],"_revision_number":1},{"id":"af46547c7779825fa757b3965b636d586b64571d","author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"date":"2018-01-24 04:52:39.000000000","message":"Patch Set 1: Workflow+1 Code-Review+2","accounts_in_message":[],"_revision_number":1},{"id":"836921d8a1039af3ac974a98c3d67aaf3beef06f","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2018-01-24 04:59:15.000000000","message":"Patch Set 1: -Verified\n\nStarting gate jobs.","accounts_in_message":[],"_revision_number":1},{"id":"90c9a5900696cd5659d081d7dd05d3a84175f4ca","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2018-01-24 05:28:54.000000000","message":"Change has been successfully merged by Zuul","accounts_in_message":[],"_revision_number":1},{"id":"35bd645c6a11e4f580dd67e32cc5aeb9652d1811","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2018-01-24 05:28:54.000000000","message":"Patch Set 1: Verified+2\n\nBuild succeeded (gate pipeline).\n\n- build-openstack-sphinx-docs http://logs.openstack.org/42/536842/1/gate/build-openstack-sphinx-docs/2cd6263/html/ : SUCCESS in 3m 54s\n- openstack-ansible-linters http://logs.openstack.org/42/536842/1/gate/openstack-ansible-linters/f1eca06/ : SUCCESS in 7m 24s\n- openstack-ansible-functional-centos-7 http://logs.openstack.org/42/536842/1/gate/openstack-ansible-functional-centos-7/f669990/ : SUCCESS in 9m 45s\n- openstack-ansible-functional-opensuse-423 http://logs.openstack.org/42/536842/1/gate/openstack-ansible-functional-opensuse-423/e4d7723/ : SUCCESS in 8m 45s\n- openstack-ansible-functional-ubuntu-xenial http://logs.openstack.org/42/536842/1/gate/openstack-ansible-functional-ubuntu-xenial/0f16753/ : SUCCESS in 7m 49s","accounts_in_message":[],"_revision_number":1}],"current_revision_number":1,"current_revision":"32e44dc7bc8b977049ca887237c136b3ca98d757","revisions":{"32e44dc7bc8b977049ca887237c136b3ca98d757":{"kind":"REWORK","_number":1,"created":"2018-01-23 14:18:58.000000000","uploader":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"ref":"refs/changes/42/536842/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/openstack-ansible-openstack_hosts","ref":"refs/changes/42/536842/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/openstack-ansible-openstack_hosts refs/changes/42/536842/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/openstack-ansible-openstack_hosts refs/changes/42/536842/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/openstack-ansible-openstack_hosts refs/changes/42/536842/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/openstack-ansible-openstack_hosts refs/changes/42/536842/1"}}},"commit":{"parents":[{"commit":"9de38169a4158b8fc14cfa656305fde8a21f934d","subject":"tests: Add missing pip_install role dependency","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-openstack_hosts/commit/9de38169a4158b8fc14cfa656305fde8a21f934d"}]}],"author":{"name":"Markos Chandras","email":"mchandras@suse.de","date":"2018-01-23 10:55:58.000000000","tz":0},"committer":{"name":"Markos Chandras","email":"mchandras@suse.de","date":"2018-01-23 11:28:18.000000000","tz":0},"subject":"templates: hostfile-setup: Improve regexp for host entries","message":"templates: hostfile-setup: Improve regexp for host entries\n\nA hosts line may contain tabs instead of spaces and the \u0027\\ .*\u0027 regexp\ndoesn\u0027t match on that case. As such, we can improve the regexp to simply\nlook for any character after matching the address word. This fixes the\nfollowing problem when an entry with a tab exists in the file\n\n~$ cat -Et /etc/hosts|head -n1\n127.0.0.1^Ilocalhost$\n\nThe entry is not updated by the script leading to the following problem\n\nfatal: [localhost]: FAILED! \u003d\u003e {\n    \"assertion\": \"\u0027127.0.1.1 localhost.openstack.local localhost\u0027 in hosts_content\",\n    \"changed\": false,\n    \"evaluated_to\": false\n}\n\nChange-Id: I23d22cbf4317a3c9228bcdb6b3e9e6c2238fcfb7\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-openstack_hosts/commit/32e44dc7bc8b977049ca887237c136b3ca98d757"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-openstack_hosts/commit/32e44dc7bc8b977049ca887237c136b3ca98d757"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
