Can't get a message from 1.1

Bug #1446677 reported by Thomas Herve
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python client library for Zaqar
Fix Released
Undecided
Thomas Herve

Bug Description

When trying to get a message while setting version to 1.1, I get the following error:

  File "/opt/stack/python-zaqarclient/zaqarclient/queues/v1/iterator.py", line 106, in __next__
    return self._create_function(args)
  File "/opt/stack/python-zaqarclient/zaqarclient/queues/v1/message.py", line 58, in <lambda>
    return lambda args: Message(parent, **args)
TypeError: __init__() got an unexpected keyword argument 'id'

The script was the simple script from the examples with version=1.1 set when creating the client.

Revision history for this message
Thomas Herve (therve) wrote :

http://paste.openstack.org/show/205009/ seems to fix the most obvious issues. It seems to be mostly backward compatible, except that href parameter gone.

Thomas Herve (therve)
Changed in python-zaqarclient:
assignee: nobody → Thomas Herve (therve)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-zaqarclient (master)

Reviewed: https://review.openstack.org/177792
Committed: https://git.openstack.org/cgit/openstack/python-zaqarclient/commit/?id=0047c541169747064b57464d6dcd0c07958c27e9
Submitter: Jenkins
Branch: master

commit 0047c541169747064b57464d6dcd0c07958c27e9
Author: Thomas Herve <email address hidden>
Date: Mon Apr 27 16:33:51 2015 +0200

    Fix handling of 1.1 API

    This fixes various behaviors of the client talking to the v1.1 API, and
    enables functional tests for queues.

    Change-Id: Icd30e32a17247790dfd57d6420d67f9140020db6
    Closes-Bug: #1446677
    Closes-Bug: #1446679

Changed in python-zaqarclient:
status: In Progress → Fix Committed
Changed in python-zaqarclient:
milestone: none → 0.2.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.