Fix wrong claim error message

Now when create a claim with a big number, the message is not
correct. It's showing the max TTL of message instead of claim.
This patch fixes it.

Closes-Bug: #1575870

Change-Id: Ia948cc521a48101fa17ec23f49b5b03164f02940
This commit is contained in:
Fei Long Wang 2016-04-28 07:10:01 +12:00
parent 621393d113
commit cae19a2886

View File

@ -473,7 +473,7 @@ class Validator(object):
'must be at least {1} seconds long.')
raise ValidationFailed(
msg, self._limits_conf.max_message_ttl, MIN_CLAIM_TTL)
msg, self._limits_conf.max_claim_ttl, MIN_CLAIM_TTL)
def subscription_posting(self, subscription):
"""Restrictions on a creation of subscription.