From a772e8d8084fe8b00810c579d12ea567549c8340 Mon Sep 17 00:00:00 2001 From: karpenok Date: Wed, 18 Nov 2026 13:50:34 +0700 Subject: [PATCH] fix(remnawave): serialize dict profile template before placeholder substitution --- ansible/roles/core-net/remnawave/files/sync_remnawave.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/core-net/remnawave/files/sync_remnawave.py b/ansible/roles/core-net/remnawave/files/sync_remnawave.py index b6b0c1d..81158f5 100644 --- a/ansible/roles/core-net/remnawave/files/sync_remnawave.py +++ b/ansible/roles/core-net/remnawave/files/sync_remnawave.py @@ -276,6 +276,8 @@ def ensure_profile_and_inbound( raw_tpl = profile_templates.get(tpl_key) if not raw_tpl: raise RuntimeError(f"Не найден шаблон профиля {tpl_key}") + if isinstance(raw_tpl, dict): + raw_tpl = json.dumps(raw_tpl) priv, _ = generate_x25519(api) short_id = secrets.token_hex(8)