[CRIU] [PATCH] py: Fix resp.errno access
Andrei Vagin
avagin at virtuozzo.com
Mon Dec 12 11:22:24 PST 2016
On Mon, Dec 12, 2016 at 09:49:42PM +0300, Pavel Emelyanov wrote:
> There's no such field in resp, only cr_errno
>
Acked-by: Andrei Vagin <avagin at virtuozzo.com>
> Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
>
> ---
>
> diff --git a/lib/py/criu.py b/lib/py/criu.py
> index 0ae204a..8725758 100644
> --- a/lib/py/criu.py
> +++ b/lib/py/criu.py
> @@ -277,6 +277,6 @@ class criu:
> resp = self._send_req_and_recv_resp(req)
>
> if not resp.success:
> - raise CRIUExceptionExternal(req.type, resp.type, resp.errno)
> + raise CRIUExceptionExternal(req.type, resp.type, resp.cr_errno)
>
> return resp.restore
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
More information about the CRIU
mailing list