Bug 574366
| Summary: | Python s/libvirt.vir{Network,Connect}.networkLookupByUUID/ | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Philipp Hahn <hahn> | ||||
| Component: | libvirt | Assignee: | Daniel Veillard <veillard> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | unspecified | CC: | crobinso, xen-maint | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2010-03-17 16:44:39 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Huh, I guess this has always been broken, we just never noticed since virtinst/virt-manager don't use this call (we only use networkLookupByName). I've applied your patch upstream. Thanks for the contribution! http://libvirt.org/git/?p=libvirt.git;a=commit;h=2ef091efcc5cd02bbd496972b141cf253f713fdd |
Created attachment 400720 [details] Patch python/libvirt-override-api.xml Description of problem: In Python, 'networkLookupByUUID()' is a method of virNetwork, but should be in class virConnect. Version-Release number of selected component (if applicable): 0.7.7 How reproducible: every time Steps to Reproduce: 1. python -c 'import libvirt; print libvirt.virNetwork.networkLookupByUUID; print libvirt.virConnect.networkLookupByUUID' Actual results: <unbound method virNetwork.networkLookupByUUID> AttributeError: class virConnect has no attribute 'networkLookupByUUID' Expected results: AttributeError: class virNetwork has no attribute 'networkLookupByUUID' <unbound method virConnect.networkLookupByUUID> Additional info: