Skip to contentSkip to conversation

Fix vscsi parser

PATCH New Masaki Kanno 1 participant 1 message Apr 2, 2009

lore
Share & tools
lore
#0 lore raw

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']

Best regards,
Kan

tools/python/xen/xm/create.py +1 -1
diff -r d5ddc782bc49 tools/python/xen/xm/create.py
@@ -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