)]}'
{"karbor/services/protection/flows/restore.py":[{"author":{"_account_id":17151,"name":"chenying","email":"chenyingko@gmail.com","username":"chenying"},"change_message_id":"e527c8db3c557e5a75ac896dbb521b702b53422f","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        super(InitializeResourcesStatus, self).__init__(*args, **kwargs)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def execute(self, restore, checkpoint):"},{"line_number":59,"context_line":"        resources \u003d graph.list_nodes(checkpoint.resource_graph)"},{"line_number":60,"context_line":"        for resource in resources:"},{"line_number":61,"context_line":"            resource_id \u003d \u0027{}#{}\u0027.format(resource.type, resource.id)"},{"line_number":62,"context_line":"            restore.update_resource_status("},{"line_number":63,"context_line":"                resource.type,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a3905b3_fa90d997","line":60,"range":{"start_line":59,"start_character":0,"end_line":60,"end_character":34},"updated":"2017-01-19 15:00:46.000000000","message":"The resources in graph are all protected resources in the plan, not the restored resources by heat. But in the task SyncRestoreStatusTask, \u0027resource.physical_resource_id\u0027 is the id of restored resource by heat. So in these two task, the key in resources_status field of restore obj is not same.","commit_id":"8ae3d919ffcd0c8010a55004b31d92699d652609"},{"author":{"_account_id":17151,"name":"chenying","email":"chenyingko@gmail.com","username":"chenying"},"change_message_id":"e527c8db3c557e5a75ac896dbb521b702b53422f","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    def execute(self, restore, checkpoint):"},{"line_number":59,"context_line":"        resources \u003d graph.list_nodes(checkpoint.resource_graph)"},{"line_number":60,"context_line":"        for resource in resources:"},{"line_number":61,"context_line":"            resource_id \u003d \u0027{}#{}\u0027.format(resource.type, resource.id)"},{"line_number":62,"context_line":"            restore.update_resource_status("},{"line_number":63,"context_line":"                resource.type,"},{"line_number":64,"context_line":"                resource_id,"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a3905b3_0e7e4ce4","line":61,"range":{"start_line":61,"start_character":2,"end_line":61,"end_character":68},"updated":"2017-01-19 15:00:46.000000000","message":"It is a duplicate processing. This should be deleted. It will be done in the update_resource_status method of restore obj.","commit_id":"8ae3d919ffcd0c8010a55004b31d92699d652609"}]}
