)]}'
{"swift/account/reaper.py":[{"author":{"_account_id":7479,"name":"paul luse","email":"paul.e.luse@intel.com","username":"peluse"},"change_message_id":"e38615e18c78f41d832bfca10615843c6b2aab69","unresolved":false,"context_lines":[{"line_number":354,"context_line":"            try:"},{"line_number":355,"context_line":"                policy_index \u003d headers.get(\u0027X-Backend-Storage-Policy-Index\u0027, 0)"},{"line_number":356,"context_line":"                policy \u003d POLICIES.get_by_index(policy_index)"},{"line_number":357,"context_line":"                if not policy:"},{"line_number":358,"context_line":"                    self.logger.error(\u0027ERROR: invalid storage policy index: %r\u0027"},{"line_number":359,"context_line":"                                      % policy_index)"},{"line_number":360,"context_line":"                for obj in objects:"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_bea54804","line":357,"updated":"2015-01-15 21:02:15.000000000","message":"so this isn\u0027t covered in test which is enough for -1 in my book however I\u0027m not sure how you would have run into this in real usage.  The get_by_index method will raise an error if it can\u0027t find what you\u0027re looking for?","commit_id":"3ad4f714580ad8db91aaf55b03cc927995fc7907"},{"author":{"_account_id":8859,"name":"Daisuke Morita","email":"morita.daisuke@ntti3.com","username":"morrisson"},"change_message_id":"e28391a9597a2c6f8b98e19b00be77d805c899ba","unresolved":false,"context_lines":[{"line_number":354,"context_line":"            try:"},{"line_number":355,"context_line":"                policy_index \u003d headers.get(\u0027X-Backend-Storage-Policy-Index\u0027, 0)"},{"line_number":356,"context_line":"                policy \u003d POLICIES.get_by_index(policy_index)"},{"line_number":357,"context_line":"                if not policy:"},{"line_number":358,"context_line":"                    self.logger.error(\u0027ERROR: invalid storage policy index: %r\u0027"},{"line_number":359,"context_line":"                                      % policy_index)"},{"line_number":360,"context_line":"                for obj in objects:"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a930d6b_ccab7473","line":357,"in_reply_to":"3a961159_bea54804","updated":"2015-01-26 02:41:38.000000000","message":"I will make an unit test to cover this code. get_by_index method actually returns None if it cannot find an appropriate policy so this code can be run into in the case of policy misconfiguration.","commit_id":"3ad4f714580ad8db91aaf55b03cc927995fc7907"}]}
