Bug 1101458 - [python-sdk] Undo snapshot preview action does not support passing correlation_id parameter
Summary: [python-sdk] Undo snapshot preview action does not support passing correlatio...
Keywords:
Status: CLOSED DUPLICATE of bug 1101405
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-sdk
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.5.0
Assignee: Juan Hernández
QA Contact: Aharon Canan
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-27 08:31 UTC by Gadi Ickowicz
Modified: 2016-02-10 19:33 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-03 11:33:47 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gadi Ickowicz 2014-05-27 08:31:08 UTC
Description of problem:
vm.undo_snapshot() method does not support passing correlation_id parameter like other actions in sdk:

>>> vm.preview_snapshot(params.Action(snapshot=snap))
<ovirtsdk.xml.params.Action object at 0x26f5850>
>>> vm.undo_snapshot(correlation_id='x')
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: undo_snapshot() got an unexpected keyword argument 'correlation_id'
>>> vm.undo_snapshot()
<ovirtsdk.xml.params.Action object at 0x3afdc50>



Version-Release number of selected component (if applicable):
rhevm-sdk-python-3.4.1.0-2.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Try to pass correlation_id parameter to undo_snapshot function in sdk


Actual results:
fails with TypeError: undo_snapshot() got an unexpected keyword argument 'correlation_id'

Expected results:
python-sdk should allow user to pass correlation_id parameter for all actions

Additional info:

Comment 1 Juan Hernández 2014-06-03 11:33:47 UTC

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


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