diff --git a/client/ayon_deadline/addon.py b/client/ayon_deadline/addon.py index 767d872676..020754517b 100644 --- a/client/ayon_deadline/addon.py +++ b/client/ayon_deadline/addon.py @@ -197,7 +197,7 @@ def _get_deadline_info( return response.json() - def pools_by_server_name(self, server_name: str) -> List[str]: + def get_pools_by_server_name(self, server_name: str) -> List[str]: """Returns dictionary of pools per DL server Args: @@ -221,7 +221,7 @@ def pools_by_server_name(self, server_name: str) -> List[str]: return pools - def groups_by_server_name(self, server_name: str) -> List[str]: + def get_groups_by_server_name(self, server_name: str) -> List[str]: """Returns dictionary of groups per DL server Args: @@ -245,7 +245,7 @@ def groups_by_server_name(self, server_name: str) -> List[str]: return groups - def limit_groups_by_server_name(self, server_name: str) -> List[str]: + def get_limit_groups_by_server_name(self, server_name: str) -> List[str]: """Returns dictionary of limit groups per DL server Args: @@ -269,7 +269,7 @@ def limit_groups_by_server_name(self, server_name: str) -> List[str]: return limit_groups - def machines_by_server_nameserver(self, server_name: str) -> List[str]: + def get_machines_by_server_nameserver(self, server_name: str) -> List[str]: """Returns dictionary of machines/workers per DL server Args: diff --git a/client/ayon_deadline/plugins/publish/global/collect_jobinfo.py b/client/ayon_deadline/plugins/publish/global/collect_jobinfo.py index 64ea927460..7951bafc1e 100644 --- a/client/ayon_deadline/plugins/publish/global/collect_jobinfo.py +++ b/client/ayon_deadline/plugins/publish/global/collect_jobinfo.py @@ -90,16 +90,16 @@ def apply_settings(cls, project_settings): addons_manager = AddonsManager() deadline_addon = addons_manager["deadline"] deadline_server_name = settings["deadline_server"] - pools = deadline_addon.pools_by_server_name(deadline_server_name) + pools = deadline_addon.get_pools_by_server_name(deadline_server_name) for pool in pools: cls.pool_enum_values.append({"value": pool, "label": pool}) - groups = deadline_addon.groups_by_server_name(deadline_server_name) + groups = deadline_addon.get_groups_by_server_name(deadline_server_name) for group in groups: cls.group_enum_values.append({"value": group, "label": group}) limit_groups = ( - deadline_addon.limit_groups_by_server_name(deadline_server_name)) + deadline_addon.get_limit_groups_by_server_name(deadline_server_name)) if not limit_groups: limit_groups.append("none") # enum cannot be empty for limit_group in limit_groups: @@ -107,7 +107,7 @@ def apply_settings(cls, project_settings): {"value": limit_group, "label": limit_group}) machines = ( - deadline_addon.machines_by_server_nameserver(deadline_server_name)) + deadline_addon.get_machines_by_server_nameserver(deadline_server_name)) for machine in machines: cls.machines_enum_values.append( {"value": machine, "label": machine})