Fix vscsi parser
PATCH 1/1 Fix vscsi parser
Hi,
This patch allows space characters in a vscsi definition. For example, it allows the space character between "1:0:0:0," and "host".
vscsi=['1:0:0:0, host']
Signed-off-by Masaki Kanno <[email protected]>
Best regards,
Kan
tools/python/xen/xm/create.py +1 -1
@@ -1081,7 +1081,7 @@ def preprocess_vscsi(vals): if not vals.vscsi: return scsi = [] for scsi_str in vals.vscsi: - d = scsi_str.split(',') + d = [tmp.strip() for tmp in scsi_str.split(',')] n = len(d) if n == 2: tmp = d[1].split(':')
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel