mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-25 15:45:51 +03:00
[PR #288] [MERGED] rbd: ensure dev_file and dev_bus are never referenced before they are se... #605
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/retspen/webvirtmgr/pull/288
Author: @EmbeddedAndroid
Created: 4/22/2014
Status: ✅ Merged
Merged: 4/23/2014
Merged by: @retspen
Base:
master← Head:master📝 Commits (1)
66e3c07rbd: ensure dev_file and dev_bus are never referenced before they are set📊 Changes
1 file changed (+4 additions, -1 deletions)
View changed files
📝
vrtManager/instance.py(+4 -1)📄 Description
When using rbd with qemu: elm.tag('file') and elm('dev') will not return true. So the variables dev_file and dev_bus will be referenced before they are assigned. This results is the instance graphing view stops 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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.