)]}'
{"tempest/api/compute/flavors/test_flavors_negative.py":[{"author":{"_account_id":20190,"name":"zhufl","email":"zhu.fanglei@zte.com.cn","username":"zhufl"},"change_message_id":"d968930dc353bac902192f0293ab7f107cadbf73","unresolved":false,"context_lines":[{"line_number":93,"context_line":"    @test.services(\u0027image\u0027)"},{"line_number":94,"context_line":"    @decorators.idempotent_id(\u0027f3d000e0-62db-45e1-a8b2-747668847ca8\u0027)"},{"line_number":95,"context_line":"    def test_boot_with_larger_swap(self):"},{"line_number":96,"context_line":"        \"\"\"Try to boot a flavor with swap larger than instance allows\"\"\""},{"line_number":97,"context_line":"        flavor \u003d self.flavors_client.show_flavor("},{"line_number":98,"context_line":"            CONF.compute.flavor_ref)[\u0027flavor\u0027]"},{"line_number":99,"context_line":"        # default swap is empty equal to 0 ."}],"source_content_type":"text/x-python","patch_set":1,"id":"ba2be162_67a9377b","line":96,"range":{"start_line":96,"start_character":25,"end_line":96,"end_character":31},"updated":"2017-03-03 05:45:21.000000000","message":"server","commit_id":"69772c96aa18f4e34056fa4d15f0e333219a4867"},{"author":{"_account_id":20190,"name":"zhufl","email":"zhu.fanglei@zte.com.cn","username":"zhufl"},"change_message_id":"d968930dc353bac902192f0293ab7f107cadbf73","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        flavor \u003d self.flavors_client.show_flavor("},{"line_number":98,"context_line":"            CONF.compute.flavor_ref)[\u0027flavor\u0027]"},{"line_number":99,"context_line":"        # default swap is empty equal to 0 ."},{"line_number":100,"context_line":"        swap_size \u003d 0"},{"line_number":101,"context_line":"        if len(flavor[\u0027swap\u0027]) !\u003d 0:"},{"line_number":102,"context_line":"            swap_size \u003d flavor[\u0027swap\u0027]"},{"line_number":103,"context_line":"        bmap \u003d [{\"source_type\": \"image\", \"delete_on_termination\": \u0027true\u0027,"},{"line_number":104,"context_line":"                 \"boot_index\": 0, \"uuid\": CONF.compute.image_ref,"},{"line_number":105,"context_line":"                 \"destination_type\": \"local\"},"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba2be162_a0da354a","line":102,"range":{"start_line":100,"start_character":0,"end_line":102,"end_character":38},"updated":"2017-03-03 05:45:21.000000000","message":"swap can be an integer. so how about:\n    swap \u003d int(flavor[\u0027swap\u0027]) if flavor[\u0027swap\u0027] else 0","commit_id":"69772c96aa18f4e34056fa4d15f0e333219a4867"},{"author":{"_account_id":20190,"name":"zhufl","email":"zhu.fanglei@zte.com.cn","username":"zhufl"},"change_message_id":"d968930dc353bac902192f0293ab7f107cadbf73","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        swap_size \u003d 0"},{"line_number":101,"context_line":"        if len(flavor[\u0027swap\u0027]) !\u003d 0:"},{"line_number":102,"context_line":"            swap_size \u003d flavor[\u0027swap\u0027]"},{"line_number":103,"context_line":"        bmap \u003d [{\"source_type\": \"image\", \"delete_on_termination\": \u0027true\u0027,"},{"line_number":104,"context_line":"                 \"boot_index\": 0, \"uuid\": CONF.compute.image_ref,"},{"line_number":105,"context_line":"                 \"destination_type\": \"local\"},"},{"line_number":106,"context_line":"                {\"guest_format\": \"swap\", \"boot_index\": -1,"},{"line_number":107,"context_line":"                 \"volume_size\": swap_size + 1, \"source_type\": \"blank\","},{"line_number":108,"context_line":"                 \"destination_type\": \"local\","},{"line_number":109,"context_line":"                 \"delete_on_termination\": \u0027true\u0027}]"},{"line_number":110,"context_line":"        self.assertRaisesRegexp(lib_exc.BadRequest,"},{"line_number":111,"context_line":"                                \"Swap drive requested is larger than \""},{"line_number":112,"context_line":"                                \"instance type allows.\","}],"source_content_type":"text/x-python","patch_set":1,"id":"ba2be162_40ac198c","line":109,"range":{"start_line":103,"start_character":0,"end_line":109,"end_character":50},"updated":"2017-03-03 05:45:21.000000000","message":"this looks unclear, maybe you can put one parameter per line?","commit_id":"69772c96aa18f4e34056fa4d15f0e333219a4867"}]}
