tools: xend: tolerate empty state/*.xml
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 14 Nov 2011 17:54:54 +0000 (17:54 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 14 Nov 2011 17:54:54 +0000 (17:54 +0000)
commite8d40584e5e2e6cf50db12674547f8a9e3177a10
tree575b33dfb32ca25db13eb20ab7cf0595b19dbeaf
parentd0de523f12adc346fc427ba35ba1c31ef4896114
tools: xend: tolerate empty state/*.xml

Bugzilla 1680: Xend fails to start if /var/lib/xend/state/*.xml are empty
which I get often when replacing the Xen hypervisor with a newer version.

This can be easily be reproduced under Fedora Core 16 by installing
xen RPMs and then replacing the xen.gz with a newer version.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Anthony Low <shinji@pikopiko.org>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/python/xen/xend/XendStateStore.py