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

login --token keeps requesting username and password #253

Open sur5r opened 2 days ago

sur5r commented 2 days ago

After using zabbix-cli init to set the url, zabbix-cli login --token XXX keeps asking for username and password. Setting the token manually in the config file works.

From a cursory look at the code, it seems both init_config and login do not containt the right logic to work correctly in this scenario.