From 28860c11bd0db4a2d85becfeca21e9b18e6371c2 Mon Sep 17 00:00:00 2001 From: Matt Mullen Date: Wed, 13 Nov 2024 10:26:08 -0500 Subject: [PATCH] fix: correct payload for submit_xml --- sophosfirewall_python/api_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sophosfirewall_python/api_client.py b/sophosfirewall_python/api_client.py index c9cf799..8875637 100644 --- a/sophosfirewall_python/api_client.py +++ b/sophosfirewall_python/api_client.py @@ -216,7 +216,7 @@ def submit_xml( {self.password} {{% if set_operation %}} - + {{% endif %}} {template_data} {{% if set_operation %}} @@ -224,6 +224,7 @@ def submit_xml( {{% endif %}} """ + template_vars["set_operation"] = set_operation template = environment.from_string(template_string) payload = template.render(**template_vars) if debug: