unioslo / zabbix-cli

Command-line interface for Zabbix
https://unioslo.github.io/zabbix-cli/
GNU General Public License v3.0
208 stars 104 forks source link

Update export.py #190

Closed sdutill closed 2 months ago

sdutill commented 2 months ago

Added encoding to exported template configuration to support YAML output.

sdutill commented 2 months ago

I believe this solves the following issue: https://github.com/unioslo/zabbix-cli/issues/174

pederhan commented 2 months ago

Was this a problem on other platforms? The auto-detected encoding was always utf-8 for me on MacOS.

I suppose it doesn't hurt to add it for consistency across all platforms.

Thanks for the contribution!

sdutill commented 2 months ago

Was this a problem on other platforms? The auto-detected encoding was always utf-8 for me on MacOS.

I suppose it doesn't hurt to add it for consistency across all platforms.

Thanks for the contribution!

pederhan,

I'm on a Win11 machine and would run crash when trying to export certain templates. Happy this was such an easy fix. Great tool you've built!

pederhan commented 2 months ago

Thank you, glad it works for you!