retspen/webvirtmgr — pull request #288 by EmbeddedAndroid (2014-04-22 22:45:12+00:00)
Title: rbd: ensure dev_file and dev_bus are never referenced before they are se...

When using rbd with qemu: elm.tag('file') and elm('dev') will not return true. So the variables dev_file will be referenced before they are assigned. This results in the instance graphing to stop functioning.

This patch will initialize the variables and check that dev_file and dev_bus are set to a value other than None before they are used.

This fixes this issue:

https://github.com/retspen/webvirtmgr/issues/281