From b79e0ad13db8504d41e773fb841176e094241e47 Mon Sep 17 00:00:00 2001 From: host Date: Mon, 10 Aug 2026 00:26:56 +0300 Subject: [PATCH] =?UTF-8?q?fix(proxmox):=20=D1=81=D1=87=D0=B8=D1=82=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=20WARNINGS=20=D1=83=D1=81=D0=BF=D0=B5=D1=88=D0=BD?= =?UTF-8?q?=D1=8B=D0=BC=20=D0=B7=D0=B0=D0=B2=D0=B5=D1=80=D1=88=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=D0=BC=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20LXC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/patch_lxc.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backend/patch_lxc.py b/backend/patch_lxc.py index 41c609c..fa480b0 100644 --- a/backend/patch_lxc.py +++ b/backend/patch_lxc.py @@ -29,4 +29,13 @@ text = text.replace( 1, ) +# Proxmox может завершать vzcreate со статусом WARNINGS: N. +# Это успешное создание с предупреждениями, а не ошибка. +text = text.replace( + ' if status.get("exitstatus") != "OK":', + ' exitstatus = status.get("exitstatus", "")\n' + ' if exitstatus != "OK" and not str(exitstatus).startswith("WARNINGS:"):', + 1, +) + path.write_text(text)