)]}'
{"tempest/scenario/test_aggregates_basic_ops.py":[{"author":{"_account_id":2750,"name":"Sean Dague","email":"sean@dague.net","username":"sdague"},"change_message_id":"0fa9cb5357b54a005fa22109b4ebd8873fca8461","unresolved":false,"context_lines":[{"line_number":54,"context_line":"    def _get_host_name(self):"},{"line_number":55,"context_line":"        hosts \u003d self.compute_client.hosts.list()"},{"line_number":56,"context_line":"        self.assertTrue(len(hosts) \u003e\u003d 1)"},{"line_number":57,"context_line":"        computes \u003d map(lambda x: x.host_name,"},{"line_number":58,"context_line":"                       filter(lambda y: y.service \u003d\u003d \u0027compute\u0027, hosts))"},{"line_number":59,"context_line":"        return computes[0]"},{"line_number":60,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1ae5cdf2_afdc0176","line":57,"updated":"2014-05-29 22:42:32.000000000","message":"This seems overly dense. I suggest:\n\ncomputes \u003d [x for x in hosts if x.service \u003d\u003d \u0027compute\u0027]\n\nreturn computes[0].host_name","commit_id":"0682245c2a4eda3ae98685b5e34e2ed6563d856c"}]}
