fix log msg typo in api utils
the log message formatted string needs a string key. Change-Id: I85ca33bd4d9692ebe9ebd73686a2adad09291dde
This commit is contained in:
parent
9e63086fa8
commit
34c6eb03ac
@ -45,7 +45,7 @@ def enforce_limit(limit):
|
||||
if limit is None:
|
||||
limit = cfg.CONF.api.default_api_return_limit
|
||||
LOG.info(_LI('No limit value provided, result set will be'
|
||||
'limited to %(limit)d.'), {limit: limit})
|
||||
'limited to %(limit)d.'), {'limit': limit})
|
||||
if limit and limit < 0:
|
||||
raise base.ClientSideError(_("Limit must be positive"))
|
||||
return limit
|
||||
|
Loading…
x
Reference in New Issue
Block a user