rdvm / zfs-status-to-discord

Get a summary of your ZFS pool in Discord with dynamic message content and routing
1 stars 1 forks source link

error executing #1

Open gurkburk76 opened 1 month ago

gurkburk76 commented 1 month ago

Granted i'm a bit of an idiot when it comes to python, but perhaps there is a problem with slighty newer versions?

root@pve:~/zfs-status-to-discord# python3 main.py Traceback (most recent call last): File "/root/zfs-status-to-discord/main.py", line 137, in main() File "/root/zfs-status-to-discord/main.py", line 134, in main zfs_report() File "/root/zfs-status-to-discord/main.py", line 81, in zfs_report state_msg = get_state() ^^^^^^^^^^^ File "/root/zfs-status-to-discord/main.py", line 46, in get_state section = get_section("state:", "status:") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/zfs-status-to-discord/main.py", line 33, in get_section ind_end = words.index(end) ^^^^^^^^^^^^^^^^ ValueError: 'status:' is not in list

python version: root@pve:~/zfs-status-to-discord# python3 -V Python 3.11.2

rdvm commented 1 month ago

It looks like it's not finding status: in the output. Could you share the output of just manually running /sbin/zpool status ?