xend: fix empty 'cpus' parsing
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 14 Dec 2009 07:59:12 +0000 (07:59 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 14 Dec 2009 07:59:12 +0000 (07:59 +0000)
commita4a7c638f78e50b0e90dffef5792fde591d5712f
tree206920d4a8d4718f278f3ff71dfd5b3f0341bba0
parent51dfdb01add6762cd3f992d942f1f9f8a4f359d1
xend: fix empty 'cpus' parsing

/etc/xen/xmexample.hvm says "" means "leave to Xen to pick", but we
get a "Error: string index out of range" currently.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
tools/python/xen/xend/XendConfig.py