Add checksum to message __init__()
c6bf0333631cd648108b5c3eb71fd12309f55457 has broken puthon-zaqarclient. Change-Id: I622affb0473643ca9eee45fe2d4ba6ab169d07b7 Closes-Bug: #1746226
This commit is contained in:
parent
c1689bf02c
commit
fd7a02588d
@ -23,13 +23,14 @@ 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_count=0):
|
||||
claim_id=None, claim_count=0, checksum=None):
|
||||
self.queue = queue
|
||||
self.href = href
|
||||
self.ttl = ttl
|
||||
self.age = age
|
||||
self.body = body
|
||||
self.claim_count = claim_count
|
||||
self.checksum = checksum
|
||||
|
||||
# NOTE(flaper87): Is this really
|
||||
# necessary? Should this be returned
|
||||
|
@ -19,13 +19,14 @@ 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_count=0):
|
||||
claim_id=None, claim_count=0, checksum=None):
|
||||
self.queue = queue
|
||||
self.href = href
|
||||
self.ttl = ttl
|
||||
self.age = age
|
||||
self.body = body
|
||||
self.claim_count = claim_count
|
||||
self.checksum = checksum
|
||||
|
||||
# NOTE(flaper87): Is this really
|
||||
# necessary? Should this be returned
|
||||
|
Loading…
Reference in New Issue
Block a user