From 008dac7bfc4401edf6f11f140a60f42ed1922e5b Mon Sep 17 00:00:00 2001 From: mamullen13316 Date: Wed, 13 Nov 2024 10:34:45 -0500 Subject: [PATCH] Fix: Regression bug in submit_xml (#87) --- pyproject.toml | 2 +- sophosfirewall_python/api_client.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 112f89b..fbea1b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "sophosfirewall-python" packages = [ { include = "sophosfirewall_python" }, ] -version = "0.1.57" +version = "0.1.58" description = "Python SDK for Sophos Firewall" authors = ["Matt Mullen "] readme = "README.md" 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: