diff --git a/nova_powervm/hacking/checks.py b/nova_powervm/hacking/checks.py index 7c497f2c..24095bbc 100644 --- a/nova_powervm/hacking/checks.py +++ b/nova_powervm/hacking/checks.py @@ -17,29 +17,5 @@ from nova.hacking import checks -def no_log_warn(logical_line, filename): - """Disallow 'LOG.warn(' - - """ - if logical_line.startswith('LOG.warn('): - yield(0, 'P301 Use LOG.warning() rather than LOG.warn()') - - -def no_os_popen(logical_line): - """Disallow 'os.popen(' - - Deprecated library function os.popen() Replace it using subprocess - https://bugs.launchpad.net/tempest/+bug/1529836 - - P302 - """ - - if 'os.popen(' in logical_line: - yield(0, 'P302 Deprecated library function os.popen(). ' - 'Replace it using subprocess module. ') - - def factory(register): - register(no_log_warn) - register(no_os_popen) checks.factory(register)