diff options
author | Andy Grover <agrover@redhat.com> | 2017-05-17 09:37:59 -0700 |
---|---|---|
committer | Andy Grover <agrover@redhat.com> | 2017-05-17 09:37:59 -0700 |
commit | b49c711b3209764687db9a7620e57f91e45057a2 (patch) | |
tree | 7196de0f03443fd9e4679aa81712c174f616d788 | |
parent | 1aa183fc4142b6fb873847b7be25ed710f2d9268 (diff) | |
download | rtslib-fb-b49c711b3209764687db9a7620e57f91e45057a2.tar.gz |
Fix exception in convert_scsi_hctl_to_path
Convert integers to string before using them with .join().
Signed-off-by: Andy Grover <agrover@redhat.com>
-rw-r--r-- | rtslib/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rtslib/utils.py b/rtslib/utils.py index 1a5315e..eeb1f6c 100644 --- a/rtslib/utils.py +++ b/rtslib/utils.py @@ -294,7 +294,7 @@ def convert_scsi_hctl_to_path(host, controller, target, lun): raise RTSLibError( "The host, controller, target and lun parameter must be integers") - hctl = [host, controller, target, lun] + hctl = [str(host), str(controller), str(target), str(lun)] try: scsi_device = pyudev.Device.from_name(_CONTEXT, 'scsi', ':'.join(hctl)) except pyudev.DeviceNotFoundError: |