LINBIT / linstor-gateway

Manages Highly-Available iSCSI targets, NVMe-oF targets, and NFS exports via LINSTOR
GNU General Public License v3.0
28 stars 6 forks source link

Fix nil dereference when one or more nodes are offline #14

Closed miketth closed 2 years ago

miketth commented 2 years ago

We ran into a panic while trying to run linstor-gateway iscsi list on our cluster while a node was offline. This is because when a node is offline, nodeRsc.State is going to be nil. This PR fixes that issue.

chrboe commented 2 years ago

Good catch, thanks!