interTwin-eu / interlink-slurm-plugin

MIT License
1 stars 3 forks source link

Panic on loading JIDs #9

Closed Surax98 closed 4 months ago

Surax98 commented 4 months ago

Short Description of the issue

Environment

Steps to reproduce

Logs, stacktrace, or other symptoms

[dspiga00@login05 logs]$ cat plugin.log 
time="2024-06-03T09:47:40+02:00" level=info msg="Loading InterLink config from /leonardo/home/userexternal/dspiga00/.config/interlink/InterLinkConfig.yaml"
time="2024-06-03T09:47:40+02:00" level=debug msg="Debug level: true"
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/intertwin-eu/interlink/pkg/slurm.LoadJIDs({, }, {{0x0, 0x0}, {0xc000417020, 0x28}, {0xc0002fa2a0, 0x10}, {0xc0002fa2e0, 0x10}, ...}, ...)
    /home/runner/work/interlink-slurm-plugin/interlink-slurm-plugin/pkg/slurm/aux.go:127 +0x9a8
main.main()
    /home/runner/work/interlink-slurm-plugin/interlink-slurm-plugin/cmd/main.go:52 +0x5d5

Summary of proposed changes