Blame SOURCES/0003-Fix-exception-in-convert_scsi_hctl_to_path.patch

71285d
From e6b267ec3712b5d13c352c6090dffbd0144ed028 Mon Sep 17 00:00:00 2001
71285d
From: Andy Grover <agrover@redhat.com>
71285d
Date: Wed, 17 May 2017 09:37:59 -0700
71285d
Subject: [PATCH] Fix exception in convert_scsi_hctl_to_path
71285d
71285d
Convert integers to string before using them with .join().
71285d
71285d
Signed-off-by: Andy Grover <agrover@redhat.com>
71285d
---
71285d
 rtslib/utils.py | 2 +-
71285d
 1 file changed, 1 insertion(+), 1 deletion(-)
71285d
71285d
diff --git a/rtslib/utils.py b/rtslib/utils.py
71285d
index 1a5315e..eeb1f6c 100644
71285d
--- a/rtslib/utils.py
71285d
+++ b/rtslib/utils.py
71285d
@@ -294,7 +294,7 @@ def convert_scsi_hctl_to_path(host, controller, target, lun):
71285d
         raise RTSLibError(
71285d
             "The host, controller, target and lun parameter must be integers")
71285d
 
71285d
-    hctl = [host, controller, target, lun]
71285d
+    hctl = [str(host), str(controller), str(target), str(lun)]
71285d
     try:
71285d
         scsi_device = pyudev.Device.from_name(_CONTEXT, 'scsi', ':'.join(hctl))
71285d
     except pyudev.DeviceNotFoundError: