retspen/webvirtmgr — pull request #202 by EmbeddedAndroid (2014-01-26 03:40:56+00:00)
Title: for rbd devices, evaluate name field for graceful error message

When using rbd devices such as:

Viewing an instance configuration causes a 500, as disk.xpathEval('source/@file|source/@dev|source/@name')[0] throws an index error as one might expect. If we use the name field to lookup the storage volume, the instance view is displayed, however a graceful error is displayed:

https://drive.google.com/file/d/0B9DbsE2BbZ7uQzlrSEZBbG1UUnM/edit?usp=sharing

Signed-off-by: Tyler Baker