Bug 574366 - Python s/libvirt.vir{Network,Connect}.networkLookupByUUID/
Summary: Python s/libvirt.vir{Network,Connect}.networkLookupByUUID/
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: All
low
medium
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-17 11:13 UTC by Philipp Hahn
Modified: 2010-03-17 16:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-17 16:44:39 UTC
Embargoed:


Attachments (Terms of Use)
Patch python/libvirt-override-api.xml (1.03 KB, patch)
2010-03-17 11:13 UTC, Philipp Hahn
no flags Details | Diff

Description Philipp Hahn 2010-03-17 11:13:35 UTC
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:

Comment 1 Cole Robinson 2010-03-17 16:44:39 UTC
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


Note You need to log in before you can comment on or make changes to this bug.