)]}'
{"neutron_lib/api/converters.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"69b6afc162c44c26bfb61bb08dc1298c6adaa2f7","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    :raises InvalidInput: If the value can\u0027t be coerced to a python bool."},{"line_number":28,"context_line":"    \"\"\""},{"line_number":29,"context_line":"    try:"},{"line_number":30,"context_line":"        return strutils.bool_from_string(data, strict\u003dTrue)"},{"line_number":31,"context_line":"    except ValueError:"},{"line_number":32,"context_line":"        msg \u003d _(\"\u0027%s\u0027 cannot be converted to boolean\") % data"},{"line_number":33,"context_line":"        raise n_exc.InvalidInput(error_message\u003dmsg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a98d1f4_135efb11","line":30,"updated":"2016-09-30 12:42:38.000000000","message":"I am reading http://docs.openstack.org/developer/oslo.utils/api/strutils.html#oslo_utils.strutils.bool_from_string and from the wording of the document, it does not seem like the library will handle bool and int typed arguments, as we do in current code in lines 34-40. Is it a mistake in the docs, or in the patch?\n\nProbably the former because I see that the function has extensive test suite that would catch regressions. But still, wouldn\u0027t it make more sense to first fix oslo.utils documentation to give us the needed guarantees, then switch to using it?","commit_id":"73ae4e4003b5919ec06c3ae1a7273aa40a81de5b"}]}
