oslo_vmware.hacking package


oslo_vmware.hacking.checks module

oslo_vmware.hacking.checks.no_translate_logs(logical_line, filename)

N537 - Don’t translate logs.

Check for ‘LOG.*(_(‘

Translators don’t provide translations for log messages, and operators asked not to translate them.

  • This check assumes that ‘LOG’ is a logger.

  • logical_line – The logical line to check.

  • filename – The file name where the logical line exists.


None if the logical line passes the check, otherwise a tuple is yielded that contains the offending index in logical line and a message describe the check validation failure.

Module contents