未验证 提交 0721767b 编写于 作者: D danleifeng 提交者: GitHub

fix server_num bug;test=develop (#27442)

上级 76fb95fe
...@@ -605,7 +605,8 @@ class PaddleCloudRoleMaker(RoleMakerBase): ...@@ -605,7 +605,8 @@ class PaddleCloudRoleMaker(RoleMakerBase):
""" """
if not self._role_is_generated: if not self._role_is_generated:
self._generate_role() self._generate_role()
return len(self._get_pserver_endpoints()) return len(self._get_pserver_endpoints(
)) if self._get_pserver_endpoints() is not None else 0
def _node_num(self): def _node_num(self):
""" """
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册