ceph / ceph-iscsi

Ceph iSCSI tools
GNU General Public License v3.0
62 stars 59 forks source link

device_status: avoid AttributeError when logging debugging info #279

Open idryomov opened 1 week ago

idryomov commented 1 week ago
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib64/python3.6/threading.py", line 937, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/site-packages/ceph_iscsi_config/device_status.py", line 162, in run
    stats_dict = dev_status.get_status_dict()
AttributeError: 'NoneType' object has no attribute 'get_status_dict'