Skip to content

Commit

Permalink
Fix update_backup method (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamullen13316 committed Mar 15, 2024
1 parent 8b05438 commit 1a413e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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.34"
version = "0.1.35"
description = "Python SDK for Sophos Firewall"
authors = ["Matt Mullen <matt.mullen@sophos.com>"]
readme = "README.md"
Expand Down
4 changes: 4 additions & 0 deletions sophosfirewall_python/templates/updatebackup.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,27 @@
<BackupPrefix>{{ BackupPrefix | default("") }}</BackupPrefix>
<FTPServer>{{ FTPServer | default("") }}</FTPServer><!-- For FTP -->
<Username>{{ Username | default("") }}</Username><!-- For FTP -->
{% if Password %}
{% if "@hashform" in Password %}
<Password hashform="mode1">{{ Password['#text'] }}</Password>
{% else %}
<Password>{{ Password | default("") }}</Password><!-- For FTP -->
{% endif %}
{% endif %}
<FtpPath>{{ FtpPath | default("") }}</FtpPath><!-- For FTP -->
<EmailAddress>{{ EmailAddress | default("") }}</EmailAddress><!--For Mail -->
<BackupFrequency>{{ BackupFrequency | default("") }}</BackupFrequency>
<Day>{{ Day | default("") }}</Day>
<Hour>{{ Hour | default("") }}</Hour>
<Minute>{{ Minute | default("") }}</Minute>
<Date>{{ Date | default("") }}</Date>
{% if EncryptionPassword %}
{% if "@hashform" in EncryptionPassword %}
<EncryptionPassword hashform="mode1">{{ EncryptionPassword['#text'] }}</EncryptionPassword>
{% else %}
<EncryptionPassword>{{ EncryptionPassword | default("") }}</EncryptionPassword>
{% endif%}
{% endif %}
</ScheduleBackup>
</BackupRestore>
</Set>
Expand Down

0 comments on commit 1a413e3

Please sign in to comment.