diff options
-rw-r--r-- | rtslib/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rtslib/utils.py b/rtslib/utils.py index e5f1c4d..a763bcc 100644 --- a/rtslib/utils.py +++ b/rtslib/utils.py @@ -231,8 +231,8 @@ def _hctl_from_dev(device): @returns: H:C:T:L specifier or None if not found @rtype: list of int * 4 or NoneType ''' - parent = device.parent - if parent is None or parent.subsystem != 'scsi': + parent = device.find_parent(subsystem='scsi') + if parent is None: return None try: |