Merge "Fix wrong check message"
This commit is contained in:
commit
6ac61c1a69
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user