)]}'
{"action/_v2_config_template.py":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"969317d1d09ccbc1d14d8940af621b58a9828f45","unresolved":false,"context_lines":[{"line_number":439,"context_line":"                tmp_content \u003d None"},{"line_number":440,"context_line":"                fd, tmp_content \u003d tmpfilelib.mkstemp()"},{"line_number":441,"context_line":"                try:"},{"line_number":442,"context_line":"                  with open(tmp_content, \u0027wb\u0027) as f:"},{"line_number":443,"context_line":"                       f.write(user_content.encode())"},{"line_number":444,"context_line":"                except Exception as err:"},{"line_number":445,"context_line":"                    os.remove(tmp_content)"}],"source_content_type":"text/x-python","patch_set":2,"id":"da4df55a_901569e6","line":442,"range":{"start_line":442,"start_character":18,"end_line":442,"end_character":22},"updated":"2016-12-28 05:44:05.000000000","message":"Bit of a nit but this should be using 4 spaces.","commit_id":"471d93b232236964ac6ce184b647c873d32a8c85"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"969317d1d09ccbc1d14d8940af621b58a9828f45","unresolved":false,"context_lines":[{"line_number":441,"context_line":"                try:"},{"line_number":442,"context_line":"                  with open(tmp_content, \u0027wb\u0027) as f:"},{"line_number":443,"context_line":"                       f.write(user_content.encode())"},{"line_number":444,"context_line":"                except Exception as err:"},{"line_number":445,"context_line":"                    os.remove(tmp_content)"},{"line_number":446,"context_line":"                    raise Exception(err)"},{"line_number":447,"context_line":"                self._task.args[\u0027src\u0027] \u003d source \u003d tmp_content"},{"line_number":448,"context_line":"        else:"},{"line_number":449,"context_line":"            source \u003d self._loader.path_dwim_relative("}],"source_content_type":"text/x-python","patch_set":2,"id":"da4df55a_7018051f","line":446,"range":{"start_line":444,"start_character":0,"end_line":446,"end_character":40},"updated":"2016-12-28 05:44:05.000000000","message":"It\u0027d be nice if this was using \"finally:\" something like, \n\n    try:\n        with open(tmp_content, \u0027wb\u0027) as f:\n            f.write(user_content.encode())\n    except Exception as err:\n        raise Exception(err)\n    finally:\n        os.remove(tmp_content)\n\nBut no major deal breaker.","commit_id":"471d93b232236964ac6ce184b647c873d32a8c85"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"d1ad30a2988b26daa13c5c6adbebd8da9ad5f0a0","unresolved":false,"context_lines":[{"line_number":441,"context_line":"                try:"},{"line_number":442,"context_line":"                  with open(tmp_content, \u0027wb\u0027) as f:"},{"line_number":443,"context_line":"                       f.write(user_content.encode())"},{"line_number":444,"context_line":"                except Exception as err:"},{"line_number":445,"context_line":"                    os.remove(tmp_content)"},{"line_number":446,"context_line":"                    raise Exception(err)"},{"line_number":447,"context_line":"                self._task.args[\u0027src\u0027] \u003d source \u003d tmp_content"},{"line_number":448,"context_line":"        else:"},{"line_number":449,"context_line":"            source \u003d self._loader.path_dwim_relative("}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5201f7_ca26ce15","line":446,"range":{"start_line":444,"start_character":0,"end_line":446,"end_character":40},"in_reply_to":"da4df55a_7018051f","updated":"2017-01-03 10:09:04.000000000","message":"the finally will be done in the \"try\" block, and will remove the file directly, but I need to pass it to the copy module, and remove it afterwards.\n\nThis could be more elegantly done, I admit it. But it gets things done, and I remove it after module execution.","commit_id":"471d93b232236964ac6ce184b647c873d32a8c85"}]}
