File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -2207,13 +2207,21 @@ def get_hyperconverged_ovs_annotations(hyperconverged):
22072207 return (hyperconverged .instance .to_dict ()["metadata" ].get ("annotations" , {})).get ("deployOVS" )
22082208
22092209
2210- def get_base_templates_list (client ):
2211- """Return SSP base templates"""
2210+ def get_base_templates_list (client : DynamicClient ) -> list [Template ]:
2211+ """
2212+ Return base templates list.
2213+
2214+ Args:
2215+ client (DynamicClient): Client to use for getting base templates list.
2216+
2217+ Returns:
2218+ list[Template]: List of base templates.
2219+ """
22122220 common_templates_list = list (
22132221 Template .get (
22142222 client = client ,
22152223 singular_name = Template .singular_name ,
2216- label_selector = Template .Labels .BASE ,
2224+ label_selector = f" { Template .Labels .BASE } , { Template . Labels . ARCHITECTURE } = { py_config [ 'cpu_arch' ] } " ,
22172225 )
22182226 )
22192227 return [
You can’t perform that action at this time.
0 commit comments