From 28860c11bd0db4a2d85becfeca21e9b18e6371c2 Mon Sep 17 00:00:00 2001 From: Matt Mullen Date: Wed, 13 Nov 2024 10:26:08 -0500 Subject: [PATCH 1/2] 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: From e615c8d911e2907fd42f23e7fc5d01aa044081c9 Mon Sep 17 00:00:00 2001 From: Matt Mullen Date: Wed, 13 Nov 2024 10:26:47 -0500 Subject: [PATCH 2/2] version: update to v0.1.58 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"