fix log msg typo in api utils

the log message formatted string needs a string key.

Change-Id: I85ca33bd4d9692ebe9ebd73686a2adad09291dde
This commit is contained in:
ZhiQiang Fan 2015-07-06 23:49:44 -07:00
parent 9e63086fa8
commit 34c6eb03ac
1 changed files with 1 additions and 1 deletions

View File

@ -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