This repository was archived by the owner on Feb 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
provisioning/miniprov/hare_mp Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,10 @@ def get_machine_ids_for_service(self, service_type: str) -> List[str]:
9292 service_type will be like Const.SERVICE_MOTR_IO.value,
9393 Const.SERVICE_S3_SERVER.value etc
9494 """
95+ if service_type == 'io' :
96+ return self .get_machine_ids_for_attribute ('num_cvg' )
9597 types = {
96- 'io ' : 'motr' ,
98+ 'motr_client ' : 'motr' ,
9799 'rgw_s3' : 'rgw' ,
98100 'agent' : 'csm'
99101 }
@@ -121,7 +123,7 @@ def get_machine_ids_for_component(self, comp_type: str) -> List[str]:
121123 return self .get_machine_ids_for_attribute ('name' , comp_type )
122124
123125 def get_machine_ids_for_attribute (self , attr_type : str ,
124- name : str ) -> List [str ]:
126+ name : str = None ) -> List [str ]:
125127 """
126128 Return a list of pod's machine_id for the machines consisting
127129 the attribute name under the given attribute type.
@@ -173,7 +175,7 @@ def get_data_nodes(self) -> List[str]:
173175 return self .get_machine_ids_for_service (Const .SERVICE_MOTR_IO .value )
174176
175177 def search_val (self , parent_key : str , search_key : str ,
176- search_val : str ) -> List [str ]:
178+ search_val : str = None ) -> List [str ]:
177179 """
178180 Searches a given key value under the given parent key.
179181 """
You can’t perform that action at this time.
0 commit comments