Add claim_count to message __init__()

Zaqar commit 66537dd067a6cf5c43597a7c31625be0ce145a83 has added
claim_count to the message object, but it's not taken care in the
client.

Change-Id: I0acdefe4ba745f99443830b16110e51c14c201a7
Closes-bug: #1736062
This commit is contained in:
rabi 2017-12-04 09:45:56 +05:30
parent 9a662f30bb
commit 299699f7ce
2 changed files with 4 additions and 2 deletions

View File

@ -23,12 +23,13 @@ class Message(object):
Attributes are only downloaded once - at creation time.
"""
def __init__(self, queue, ttl, age, body, href=None, id=None,
claim_id=None):
claim_id=None, claim_count=0):
self.queue = queue
self.href = href
self.ttl = ttl
self.age = age
self.body = body
self.claim_count = claim_count
# NOTE(flaper87): Is this really
# necessary? Should this be returned

View File

@ -19,12 +19,13 @@ from zaqarclient.queues.v2 import core
class Message(message.Message):
def __init__(self, queue, ttl, age, body, href=None, id=None,
claim_id=None):
claim_id=None, claim_count=0):
self.queue = queue
self.href = href
self.ttl = ttl
self.age = age
self.body = body
self.claim_count = claim_count
# NOTE(flaper87): Is this really
# necessary? Should this be returned