Skip to content

Commit

Permalink
Bugfix for the SRDF 'NoneType' object is not subscriptable error (#67)
Browse files Browse the repository at this point in the history
Signed-off-by: Luis Liu <[email protected]>
  • Loading branch information
vangork authored Feb 19, 2025
1 parent b7e6431 commit 3dd31a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/modules/srdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,10 @@ def get_created_srdf_link_status(self, job):
break
return True
except Exception as e:
LOG.info('Failed to retrieve SRDF link status. Exception '
'received was %s.', e)
err_msg = ("Failed to retrieve SRDF link status with error: %s"
% str(e))
LOG.error(err_msg)
raise e

def _compute_required_establish_flag(self, srdf_state):
if (srdf_state is None or srdf_state == 'Suspend'):
Expand Down

0 comments on commit 3dd31a8

Please sign in to comment.