提交 23f8a4b1 编写于 作者: Q Qiao Longfei 提交者: guru4elephant

assign role_maker before use (#18137)

fix role_maker bug
test=develop
上级 6eec66a1
......@@ -188,6 +188,7 @@ class Fleet(object):
if role_maker and not isinstance(role_maker, RoleMakerBase):
raise ValueError("role_maker must be an instance of RoleMakerBase")
self._role_maker = role_maker
self._role_maker.generate_role()
self._is_initialized = True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册