mirror of https://github.com/apache/cloudstack.git
when get scsi_id, replace all whitespaces by underscores
This commit is contained in:
parent
21da2d6608
commit
314213e302
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue