[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel][PATCH]Fix the issue that guest cannot boot if set empty cdrom in config file


  • To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Xu, Dongxiao" <dongxiao.xu@xxxxxxxxx>
  • Date: Tue, 13 May 2008 13:56:20 +0800
  • Delivery-date: Mon, 12 May 2008 22:57:01 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Aci0vhEnErTXFIRYRVK8DsZJQ78r3Q==
  • Thread-topic: [Xen-devel][PATCH]Fix the issue that guest cannot boot if set empty cdrom in config file

Hi, Keir,
      This attached patch fixes the issue that guest can not boot if set
empty cdrom in configuration file. 
(For example, disk = [ 'file:/images/a.img', ',hdc:cdrom,r' ])

This is because function "uname = config.get('uname', '')" returns ''
but not None if uname is not in config variable. 

Signed-off-by: Xu Dongxiao <dongxiao.xu@xxxxxxxxx>

Best Regards,
--Dongxiao

Attachment: blk_python.patch
Description: blk_python.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.