Merge "Force LUN_ID to an int"

This commit is contained in:
Jenkins 2017-05-26 16:22:01 +00:00 committed by Gerrit Code Review
commit 0e692e19bc
1 changed files with 2 additions and 0 deletions

View File

@ -436,6 +436,8 @@ class LinuxSCSI(executor.Executor):
return processed
def _format_lun_id(self, lun_id):
# make sure lun_id is an int
lun_id = int(lun_id)
if lun_id < 256:
return lun_id
else: