Merge "Fix wrong check message"

This commit is contained in:
Jenkins 2015-12-11 21:07:49 +00:00 committed by Gerrit Code Review
commit 6ac61c1a69
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ Manila Specific Commandments
- [M329] LOG.info messages require translations _LI()!
- [M330] LOG.warning messages require translations _LW()!
- [M331] Log messages require translations!
- [M333] 'oslo_' should be used instead of 'oslo.'
LOG Translations

View File

@ -226,7 +226,7 @@ def check_oslo_namespace_imports(logical_line, physical_line, filename):
if pep8.noqa(physical_line):
return
if re.match(oslo_namespace_imports, logical_line):
msg = ("N333: '%s' must be used instead of '%s'.") % (
msg = ("M333: '%s' must be used instead of '%s'.") % (
logical_line.replace('oslo.', 'oslo_'),
logical_line)
yield(0, msg)