Bug 947401

Summary: Update dc name with cli fails with an exception
Product: Red Hat Enterprise Virtualization Manager Reporter: Ohad Basan <obasan>
Component: ovirt-engine-cliAssignee: Michael Pasternak <mpastern>
Status: CLOSED DUPLICATE QA Contact: Elena <edolinin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, bazulay, dyasny, eedri, iheim, mgoldboi, oramraz, Rhev-m-bugs, srevivo, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-02 10:48:30 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 Ohad Basan 2013-04-02 10:45:37 UTC
Description of problem:

Update datacenter command fails with an exception:

update datacenter RestDataCenter1  --description 'Data Center Description' --name 'RestDataCenterUpdated' --correlation_id 303 > /tmp/cli_output.tmp


[K[?1l>Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/cli/context.py", line 187, in execute_string
    self._execute_command(command)
  File "/usr/lib/python2.6/site-packages/cli/context.py", line 275, in _execute_command
    command.run(self)
  File "/usr/lib/python2.6/site-packages/cli/command/command.py", line 100, in run
    self.execute()
  File "/usr/lib/python2.6/site-packages/ovirtcli/command/remove.py", line 146, in execute
    context_variants=typs[args[0]])
  File "/usr/lib/python2.6/site-packages/ovirtcli/command/command.py", line 334, in get_object
    return coll.get(name=obj_id)
  File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/brokers.py", line 1191, in get
    query="name=" + name
TypeError: getItem() got an unexpected keyword argument 'query'
[RHEVM shell (connected)]#

Comment 2 Michael Pasternak 2013-04-02 10:48:30 UTC

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