Skip to content

Commit

Permalink
fix: correct payload for submit_xml
Browse files Browse the repository at this point in the history
  • Loading branch information
mamullen13316 committed Nov 13, 2024
1 parent 5680d1f commit 28860c1
Showing 1 changed file with 2 additions and 1 deletion.
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 28860c1

Please sign in to comment.