From 314213e302512839251d7316d50ba41bf5323329 Mon Sep 17 00:00:00 2001 From: anthony Date: Wed, 20 Oct 2010 13:48:40 -0700 Subject: [PATCH] when get scsi_id, replace all whitespaces by underscores --- scripts/vm/hypervisor/xenserver/vmops | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vm/hypervisor/xenserver/vmops b/scripts/vm/hypervisor/xenserver/vmops index b3b28b5b59c..0de989a9cf6 100755 --- a/scripts/vm/hypervisor/xenserver/vmops +++ b/scripts/vm/hypervisor/xenserver/vmops @@ -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: