Bug 1126793

Summary: [ovirt-engine-sdk] AttributeError: 'Users' object has no attribute 'get_owner'
Product: [Retired] oVirt Reporter: Ondra Machacek <omachace>
Component: ovirt-engine-sdkAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.5CC: acathrow, ecohen, gklein, iheim, yeylon
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-05 09:58:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ondra Machacek 2014-08-05 09:56:06 UTC
Description of problem:


Version-Release number of selected component (if applicable):
ovirt-engine-sdk-python-3.5.0.3-1.20140712.git73490d1.el6.noarch

How reproducible:
always

Steps to Reproduce:
#!/usr/bin/env python
import ovirtsdk.api
from ovirtsdk.xml import params

API = ovirtsdk.api.API(url='https://localhost:443/api', insecure=True,
        username='admin@internal', password='password', filter=False, debug=False)

for i in API.users.list():
    print i.get_name()

for i in API.domains.list()[0].users.list():
    print i.get_name()

Actual results:
Traceback (most recent call last):
  File "./spam.py", line 8, in <module>
    for i in API.users.list():
  File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/brokers.py", line 18746, in list
    headers={}
AttributeError: 'Users' object has no attribute 'get_owner'


Expected results:
list engine users and domain users

Additional info:

Comment 1 Ondra Machacek 2014-08-05 09:58:20 UTC

*** This bug has been marked as a duplicate of bug 1125161 ***