Merge "Fix query claim NoneType error"

This commit is contained in:
Jenkins 2017-07-27 09:38:36 +00:00 committed by Gerrit Code Review
commit b6d59fc773

View File

@ -903,7 +903,7 @@ class QueryClaim(command.Lister):
queue = client.queue(parsed_args.queue_name, auto_create=False)
keys = ("_id", "age", "ttl", "body")
columns = ("Message_ID", "Age", "TTL", "Message")
data = queue.claim(id=parsed_args.claim_id)._get()
data = queue.claim(id=parsed_args.claim_id)
return (columns,
(utils.get_item_properties(s, keys) for s in data))