)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6167,"name":"Ken\u0027ichi Ohmichi","email":"ken1ohmichi@gmail.com","username":"oomichi"},"change_message_id":"2c1468e9662c374ab2c0b3bc21400f10ce38b5fc","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Correct configuration setting using NUMBER_FAKE_NOVA_COMPUTE"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"In Change-Id Ia3843818014f7c6c7526ef3aa9676bbddb8a85ca the \u0027host\u0027"},{"line_number":10,"context_line":"setting used for each of the fake compute hosts was accidentally named"},{"line_number":11,"context_line":"\u0027nhost\u0027 (\u0027\\nhost\u0027 was edited poorly), so the setting doesn\u0027t actually do"},{"line_number":12,"context_line":"anything: you create multiple nova-compute processes they think they are"},{"line_number":13,"context_line":"all on the same host and only one hypervisor and resource provider is"},{"line_number":14,"context_line":"created."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3fa0c359_82e2972e","line":11,"range":{"start_line":10,"start_character":52,"end_line":11,"end_character":36},"updated":"2018-02-08 04:07:25.000000000","message":"OMG","commit_id":"ac475bbb2a906f481b953494ba28690a716a3554"}],"functions":[{"author":{"_account_id":6167,"name":"Ken\u0027ichi Ohmichi","email":"ken1ohmichi@gmail.com","username":"oomichi"},"change_message_id":"2c1468e9662c374ab2c0b3bc21400f10ce38b5fc","unresolved":false,"context_lines":[{"line_number":448,"context_line":"            sleep 1"},{"line_number":449,"context_line":"            if [[ \"$VIRT_DRIVER\" \u003d \u0027fake\u0027 ]]; then"},{"line_number":450,"context_line":"                # When using the fake driver the compute hostnames have a suffix of 1 to NUMBER_FAKE_NOVA_COMPUTE"},{"line_number":451,"context_line":"                ID\u003d\\$(openstack --os-cloud devstack-admin --os-region \"$REGION_NAME\" compute service list --host `hostname`1 --service nova-compute -c ID -f value)"},{"line_number":452,"context_line":"            else"},{"line_number":453,"context_line":"                ID\u003d\\$(openstack --os-cloud devstack-admin --os-region \"$REGION_NAME\" compute service list --host `hostname` --service nova-compute -c ID -f value)"},{"line_number":454,"context_line":"            fi"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"3fa0c359_02452717","line":451,"range":{"start_line":451,"start_character":123,"end_line":451,"end_character":124},"updated":"2018-02-08 04:07:25.000000000","message":"easy code could be like\n\n if [[ \"$VIRT_DRIVER\" \u003d \u0027fake\u0027 ]]; then\n     # When using ...\n     SUFFIX\u003d1\n else\n     SUFFIX\u003d\"\"\n fi\n ID\u003d\\$(openstack --os-cloud devstack-admin --os-region \"$REGION_NAME\" compute service list --host `hostname`\"$SUFFIX\" --service nova-compute -c ID -f value)","commit_id":"ac475bbb2a906f481b953494ba28690a716a3554"}]}
