)]}'
{"nova/api/openstack/compute/rescue.py":[{"author":{"_account_id":14084,"name":"Einst Crazy","email":"yu.changcai@99cloud.net","username":"Einst"},"change_message_id":"a9ac71ea7bb73e6fa9e21310ff467ecf5d803e49","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        instance \u003d common.get_instance(self.compute_api, context, id)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"        rescue_image_ref \u003d body[\u0027rescue\u0027].get(\u0027rescue_image_ref\u0027)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        try:"},{"line_number":62,"context_line":"            self.compute_api.rescue(context, instance,"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa69d971_a5a0d591","line":59,"updated":"2015-12-30 02:35:57.000000000","message":"what if the body[\u0027rescue\u0027] is none?","commit_id":"90da6eb487a81879fdfec7d78a2670111ecd5298"}],"nova/tests/unit/api/openstack/compute/test_rescue.py":[{"author":{"_account_id":5754,"name":"Alex Xu","email":"hejie.xu@intel.com","username":"xuhj"},"change_message_id":"948f4e300b77a9ef06bc873c58d0fd7fb12fcc8a","unresolved":false,"context_lines":[{"line_number":165,"context_line":"    def test_rescue_with_none(self):"},{"line_number":166,"context_line":"        body \u003d dict(rescue\u003dNone)"},{"line_number":167,"context_line":"        resp \u003d self.controller._rescue(self.fake_req, UUID, body\u003dbody)"},{"line_number":168,"context_line":"        self.assertEqual(CONF.password_length, len(resp[\u0027adminPass\u0027]))"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    def test_rescue_with_empty_dict(self):"},{"line_number":171,"context_line":"        body \u003d dict(rescue\u003ddict())"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa69d971_65c5fd59","side":"PARENT","line":168,"updated":"2015-12-30 02:27:19.000000000","message":"we allow None value https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/schemas/rescue.py#L22\n\nSo I don\u0027t think we should change those unittests.","commit_id":"4d7a594a1c52c8e5923d02a080bb2a6f8b38a28a"}]}
