Merge "Remove non-inclusive language"
This commit is contained in:
commit
0e65f0134d
ironic
@ -39,7 +39,7 @@ from ironic.common import json_rpc
|
|||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = log.getLogger(__name__)
|
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):
|
def _build_method_map(manager):
|
||||||
@ -50,7 +50,7 @@ def _build_method_map(manager):
|
|||||||
"""
|
"""
|
||||||
result = {}
|
result = {}
|
||||||
for method in dir(manager):
|
for method in dir(manager):
|
||||||
if method.startswith('_') or method in _BLACK_LIST:
|
if method.startswith('_') or method in _DENY_LIST:
|
||||||
continue
|
continue
|
||||||
func = getattr(manager, method)
|
func = getattr(manager, method)
|
||||||
if not callable(func):
|
if not callable(func):
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
"""Base classes for our unit tests.
|
"""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.
|
inline callbacks.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -266,7 +266,7 @@ class TestService(test_base.TestCase):
|
|||||||
'code': -32601,
|
'code': -32601,
|
||||||
})
|
})
|
||||||
|
|
||||||
def test_no_blacklisted_methods(self):
|
def test_no_deny_methods(self):
|
||||||
for name in ('__init__', '_private', 'init_host', 'value'):
|
for name in ('__init__', '_private', 'init_host', 'value'):
|
||||||
body = self._request(name, {'context': self.ctx})
|
body = self._request(name, {'context': self.ctx})
|
||||||
self._check(body,
|
self._check(body,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user