Use a serializable object to represent operation
@@ -1008,7 +1008,7 @@ class VersionHandler(BaseVersionHandler):
IOLoop.current().spawn_callback(wait_for_delete,
del_operation.id, ports_to_close)
- self.write(json_encode(del_operation))
+ self.write(json_encode(del_operation.rest_repr()))
@gen.coroutine
def patch(self, project_id, service_id, version_id):
