)]}'
{"ironic/conductor/utils.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"e3572bef53b1687e82b68c0406691d88ffd5396a","unresolved":false,"context_lines":[{"line_number":87,"context_line":"    # starting a new operation. This will expose to other processes"},{"line_number":88,"context_line":"    # and clients that work is in progress."},{"line_number":89,"context_line":"    node[\u0027target_power_state\u0027] \u003d target_state"},{"line_number":90,"context_line":"    node[\u0027last_error\u0027] \u003d None"},{"line_number":91,"context_line":"    node.save()"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    if new_state !\u003d states.REBOOT:"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a95cdbc_8d46c421","line":90,"range":{"start_line":90,"start_character":4,"end_line":90,"end_character":29},"updated":"2016-10-05 11:30:11.000000000","message":"This method is called from drivers too, and previously it was not clearing last_error in all cases. I can\u0027t imagine a real situation when this happens OTOH, when you call node_power_action, the state is already set on a node, and target_power_state is different from what it should be... People should not do that, and it seems to be OK to always clear last_error.","commit_id":"bbd0fb0ba357502e949af162c2c2c17b9b06e178"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"e3572bef53b1687e82b68c0406691d88ffd5396a","unresolved":false,"context_lines":[{"line_number":88,"context_line":"    # and clients that work is in progress."},{"line_number":89,"context_line":"    node[\u0027target_power_state\u0027] \u003d target_state"},{"line_number":90,"context_line":"    node[\u0027last_error\u0027] \u003d None"},{"line_number":91,"context_line":"    node.save()"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    if new_state !\u003d states.REBOOT:"},{"line_number":94,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a95cdbc_0d60f4cd","line":91,"range":{"start_line":91,"start_character":4,"end_line":91,"end_character":15},"updated":"2016-10-05 11:30:11.000000000","message":"nit - Not sure we need node.save here, it seems like all code execution paths already have save in the end.","commit_id":"bbd0fb0ba357502e949af162c2c2c17b9b06e178"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a929b56bc22b1368753e604e116e4193d2149ec8","unresolved":false,"context_lines":[{"line_number":88,"context_line":"    # and clients that work is in progress."},{"line_number":89,"context_line":"    node[\u0027target_power_state\u0027] \u003d target_state"},{"line_number":90,"context_line":"    node[\u0027last_error\u0027] \u003d None"},{"line_number":91,"context_line":"    node.save()"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    if new_state !\u003d states.REBOOT:"},{"line_number":94,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a95cdbc_69084b92","line":91,"range":{"start_line":91,"start_character":4,"end_line":91,"end_character":15},"in_reply_to":"1a95cdbc_0d60f4cd","updated":"2016-10-06 14:43:10.000000000","message":"I think it\u0027s necessary. Otherwise, we\u0027re only setting target_power_state after the change in power state has already occurred.","commit_id":"bbd0fb0ba357502e949af162c2c2c17b9b06e178"}]}
