Skip to content

Commit

Permalink
Fix: Regression bug in submit_xml (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamullen13316 authored Nov 13, 2024
1 parent 5680d1f commit 008dac7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
readme = "README.md"
Expand Down
3 changes: 2 additions & 1 deletion sophosfirewall_python/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,15 @@ def submit_xml(
<Password>{self.password}</Password>
</Login>
{{% if set_operation %}}
<Set operation="{set_operation}">
<Set operation="{{{{ set_operation }}}}">
{{% endif %}}
{template_data}
{{% if set_operation %}}
</Set>
{{% endif %}}
</Request>
"""
template_vars["set_operation"] = set_operation
template = environment.from_string(template_string)
payload = template.render(**template_vars)
if debug:
Expand Down

0 comments on commit 008dac7

Please sign in to comment.