when get scsi_id, replace all whitespaces by underscores

This commit is contained in:
anthony 2010-10-20 13:48:40 -07:00
parent 21da2d6608
commit 314213e302
1 changed files with 1 additions and 1 deletions

View File

@ -551,7 +551,7 @@ def checkIscsi(session, args):
rdevpath = rdevpath.replace(".", "")
rdevpath = rdevpath.replace("/", "")
rdevpath = "/block/" + rdevpath
cmd = ["scsi_id", "-g", "-s", rdevpath ]
cmd = ["scsi_id", "-g", "-u", "-s", rdevpath ]
txt = util.pread2(cmd)
txt = txt.replace("\n", "")
if scsiid == txt: