Ensure hmget return right data format

The Jenkins is done due to the funtional test[1] in redis backend.

The reason is that we use hmget to get the information but hmget
can't distinguish integer. it returns all value in string format.

This patch did a quick fix to let jenkins work.

[1]: https://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/tests/queues/subscriptions.py#L212

Change-Id: I0dcb50535913457ae1ad705939dcff555c6e1ae8
This commit is contained in:
wangxiyuan 2016-02-16 14:36:01 +08:00
parent 325e3e0210
commit 3746b45362

View File

@ -77,7 +77,7 @@ class SubscriptionController(base.Subscription):
'id': sid, 'id': sid,
'source': record[0], 'source': record[0],
'subscriber': record[1], 'subscriber': record[1],
'ttl': record[2], 'ttl': int(record[2]),
'options': self._unpacker(record[3]), 'options': self._unpacker(record[3]),
} }
marker_next['next'] = sid marker_next['next'] = sid