)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"01096435964d5beb55cced2b1b017ec30603c245","unresolved":false,"context_lines":[{"line_number":10,"context_line":"reservation from Stein release. This patch follows the change in"},{"line_number":11,"context_line":"the blazar dashboard."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Ibceef87ee717cd978e38765bde80e8294a69833d"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5fc1f717_77eedbed","line":13,"range":{"start_line":13,"start_character":0,"end_line":13,"end_character":52},"updated":"2019-03-27 09:19:38.000000000","message":"Please add Closes-Bug: #1821168","commit_id":"248eb3468b8117c3044426152edb0a34e1654cd0"}],"blazar_dashboard/content/leases/tests.py":[{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"4a2417e41cacd54802bc4fd61bab2c37ca680549","unresolved":false,"context_lines":[{"line_number":160,"context_line":"                    \u0027vcpus\u0027: 2,"},{"line_number":161,"context_line":"                    \u0027memory_mb\u0027: 4096,"},{"line_number":162,"context_line":"                    \u0027disk_gb\u0027: 128,"},{"line_number":163,"context_line":"                    \u0027affinity\u0027: \u0027False\u0027,"},{"line_number":164,"context_line":"                    \u0027resource_properties\u0027: \u0027[\"\u003d\u003d\", \"$energy\", \"clean\"]\u0027"},{"line_number":165,"context_line":"                }"},{"line_number":166,"context_line":"            ],"}],"source_content_type":"text/x-python","patch_set":3,"id":"5fc1f717_ed5bb31e","line":163,"range":{"start_line":163,"start_character":20,"end_line":163,"end_character":40},"updated":"2019-03-28 19:06:43.000000000","message":"This caught my eye. The API ref and example request says affinity is a boolean value: https://developer.openstack.org/api-ref/reservation/v1/index.html?expanded\u003dcreate-lease-detail#create-lease\n\nBut in the code we do bool_from_string. What is it supposed to be?","commit_id":"40640949188b501f12386cdb0bf38bd11de9fcd9"},{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"d5a3d336f637f7281b8d0bf055a19b1e356a00a7","unresolved":false,"context_lines":[{"line_number":160,"context_line":"                    \u0027vcpus\u0027: 2,"},{"line_number":161,"context_line":"                    \u0027memory_mb\u0027: 4096,"},{"line_number":162,"context_line":"                    \u0027disk_gb\u0027: 128,"},{"line_number":163,"context_line":"                    \u0027affinity\u0027: \u0027False\u0027,"},{"line_number":164,"context_line":"                    \u0027resource_properties\u0027: \u0027[\"\u003d\u003d\", \"$energy\", \"clean\"]\u0027"},{"line_number":165,"context_line":"                }"},{"line_number":166,"context_line":"            ],"}],"source_content_type":"text/x-python","patch_set":3,"id":"5fc1f717_93324da6","line":163,"range":{"start_line":163,"start_character":20,"end_line":163,"end_character":40},"in_reply_to":"5fc1f717_ed5bb31e","updated":"2019-03-29 04:52:39.000000000","message":"It is *now* supposed to be exactly what oslo.strutils.bool_from_string() supports [1]. It can be a boolean, a string or an integer. Boolean type value will be returned directly, otherwise the subject will be converted to a string. A case-insensitive match is performed.\n\nTRUE_STRINGS \u003d (\u00271\u0027, \u0027t\u0027, \u0027true\u0027, \u0027on\u0027, \u0027y\u0027, \u0027yes\u0027)\nFALSE_STRINGS \u003d (\u00270\u0027, \u0027f\u0027, \u0027false\u0027, \u0027off\u0027, \u0027n\u0027, \u0027no\u0027)\nNONE_STRINGS \u003d [anything else]\n\n...though I assume according to the bug report [2] we are going to restrict the value to boolean or string of either \u0027False\u0027/\u0027True\u0027/\u0027None\u0027 including lower and capital.\n\n[1] https://github.com/openstack/oslo.utils/blob/master/oslo_utils/strutils.py#L115\n\n[2] https://bugs.launchpad.net/blazar/+bug/1821576","commit_id":"40640949188b501f12386cdb0bf38bd11de9fcd9"}]}
