[skip ci]Add comments for getMetrics (#8933)

Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
pull/8940/head
yanliang567 2021-09-30 18:05:39 +08:00 committed by GitHub
parent 818cf3ffa0
commit e7ea978a88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ class MilvusSys:
return json.loads(self.sys_info.response).get('nodes_info')
def get_nodes_by_type(self, node_type=None):
"""get milvus nodes by node type"""
target_nodes = []
if node_type is not None:
for node in self.nodes: