)]}'
{"nova/compute/manager.py":[{"author":{"_account_id":1812,"name":"p-draigbrady","email":"P@draigBrady.com","username":"p-draigbrady"},"change_message_id":"cbb45977cd29811ce75a7337a0dc2eea245f6d78","unresolved":false,"context_lines":[{"line_number":507,"context_line":"        context \u003d nova.context.get_admin_context()"},{"line_number":508,"context_line":"        instance \u003d self.conductor_api.instance_get_by_uuid("},{"line_number":509,"context_line":"            context, event.get_instance_uuid())"},{"line_number":510,"context_line":"        vm_power_state \u003d None"},{"line_number":511,"context_line":"        if event.get_transition() \u003d\u003d virtevent.EVENT_LIFECYCLE_STOPPED:"},{"line_number":512,"context_line":"            vm_power_state \u003d power_state.SHUTDOWN"},{"line_number":513,"context_line":"        elif event.get_transition() \u003d\u003d virtevent.EVENT_LIFECYCLE_STARTED:"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAM3%2F%2Bx6o%3D","line":510,"updated":"2013-02-19 13:29:33.000000000","message":"I\u0027d do this as:\n\n    {\n     virtevent.EVENT_LIFECYCLE_STOPPED: power_state.SHUTDOWN,\n     ...\n    }.get(event.get_transition())\n\n    if vm_power_state is not None:\n        sync\n    else:\n        log warning\n\nNo need to change though unless respinning for something else","commit_id":"a40a2d33535b654dcaaf0f6436c7f749dc169fab"}]}
