zabbix-cli
zabbix-cli copied to clipboard
Login should be aborted if application fails to retrieve API version
If we can't fetch from apiinfo.version, it means the API is unavailable, and we should not proceed with the login flow. zabbix_cli.pyzabbix.client.ZabbixAPI.api_version() should also raise a more accurate exception subtype than just ZabbixAPIException when this happens.