)]}'
{"ironic/conductor/allocations.py":[{"author":{"_account_id":24828,"name":"Kaifeng Wang","email":"kaifeng.w@gmail.com","username":"wangkf"},"change_message_id":"26240918907dd0157804d27765b26c6809264a4c","unresolved":false,"context_lines":[{"line_number":85,"context_line":"def _allocation_failed(allocation, reason):"},{"line_number":86,"context_line":"    \"\"\"Failure handler for the allocation.\"\"\""},{"line_number":87,"context_line":"    try:"},{"line_number":88,"context_line":"        allocation.node_id \u003d None"},{"line_number":89,"context_line":"        allocation.state \u003d states.ERROR"},{"line_number":90,"context_line":"        allocation.last_error \u003d str(reason)"},{"line_number":91,"context_line":"        allocation.save()"}],"source_content_type":"text/x-python","patch_set":1,"id":"dfbec78f_84a4170a","line":88,"updated":"2019-05-06 02:28:11.000000000","message":"well, this seems not working, I think either we need obj_reset_changes after updating node_id, or we need to check if the node_id is None at db layer:\nhttps://opendev.org/openstack/ironic/src/commit/21093ca886ed736a7a25bf5e71e05d41e132fd2f/ironic/db/sqlalchemy/api.py#L1761","commit_id":"574869057fccbc4437354acb16a5a86365b7b155"}]}
