Skip to content

Commit

Permalink
Update export.py (#190)
Browse files Browse the repository at this point in the history
Added encoding to exported template configuration to support YAML output.
  • Loading branch information
sdutill authored Aug 29, 2024
1 parent 06f5561 commit 4bc3774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zabbix_cli/commands/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def write_exported(self, exported: str, filename: Path) -> Path:
raise ZabbixCLIError(
f"Failed to create directory {filename.parent}: {e}. Ensure you have permissions to create directories in the export directory."
) from e
with open(filename, "w") as f:
with open(filename, "w", encoding="utf-8") as f:
f.write(exported)
return filename

Expand Down

0 comments on commit 4bc3774

Please sign in to comment.