Remove non-inclusive language

Replace the word black with deny.

Change-Id: I556abad4f1afd7b8ccf1eea8e6ebd5291bc0fce7
This commit is contained in:
Iury Gregory Melo Ferreira 2020-07-09 13:47:56 +02:00
parent 5d419bcccb
commit 2d814fe609
3 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ from ironic.common import json_rpc
CONF = cfg.CONF
LOG = log.getLogger(__name__)
_BLACK_LIST = {'init_host', 'del_host', 'target', 'iter_nodes'}
_DENY_LIST = {'init_host', 'del_host', 'target', 'iter_nodes'}
def _build_method_map(manager):
@ -50,7 +50,7 @@ def _build_method_map(manager):
"""
result = {}
for method in dir(manager):
if method.startswith('_') or method in _BLACK_LIST:
if method.startswith('_') or method in _DENY_LIST:
continue
func = getattr(manager, method)
if not callable(func):

View File

@ -16,7 +16,7 @@
"""Base classes for our unit tests.
Allows overriding of config for use of fakes, and some black magic for
Allows overriding of config for use of fakes, and some magic for
inline callbacks.
"""

View File

@ -266,7 +266,7 @@ class TestService(test_base.TestCase):
'code': -32601,
})
def test_no_blacklisted_methods(self):
def test_no_deny_methods(self):
for name in ('__init__', '_private', 'init_host', 'value'):
body = self._request(name, {'context': self.ctx})
self._check(body,