Merge "Remove non-inclusive language"

This commit is contained in:
Zuul 2020-07-11 01:25:49 +00:00 committed by Gerrit Code Review
commit 0e65f0134d
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,