Commit 887442a
committed
fix: correct iSCSI service reload return type (int, not bool)
TrueNAS service.control API returns a job ID (integer), but
ReloadISCSIService was unmarshaling into a bool, causing every iSCSI
target creation to fail the reload with "cannot unmarshal number into
Go value of type bool". This made new targets not immediately
discoverable, causing flaky iSCSI E2E tests.1 parent 98402e5 commit 887442a
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2770 | 2770 | | |
2771 | 2771 | | |
2772 | 2772 | | |
2773 | | - | |
2774 | | - | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
2775 | 2776 | | |
2776 | 2777 | | |
2777 | 2778 | | |
2778 | | - | |
| 2779 | + | |
2779 | 2780 | | |
2780 | 2781 | | |
2781 | 2782 | | |
2782 | 2783 | | |
2783 | 2784 | | |
2784 | | - | |
2785 | | - | |
2786 | | - | |
2787 | | - | |
2788 | | - | |
| 2785 | + | |
2789 | 2786 | | |
2790 | 2787 | | |
0 commit comments