diff --git a/ecs_composex/compose/x_resources/services_resources.py b/ecs_composex/compose/x_resources/services_resources.py index 5dcd5f61..5d8b0db8 100644 --- a/ecs_composex/compose/x_resources/services_resources.py +++ b/ecs_composex/compose/x_resources/services_resources.py @@ -72,7 +72,7 @@ def define_service_to_associate( return _associated_service def handle_families_targets_expansion_list( - self, service_name: str, service_def, settings: ComposeXSettings + self, service_name: str, service_def: dict, settings: ComposeXSettings ): """ Method to list all families and services that are targets of the resource. @@ -95,7 +95,7 @@ def handle_families_targets_expansion_list( service_name, family_name, settings ) ], - set_else_none(service_def[access_key], service_def, {}), + set_else_none(access_key, service_def, {}), service_def, ) ) @@ -210,10 +210,11 @@ def set_services_targets(self, settings): LOG.debug(f"{self.module.res_key}.{self.name} No Services defined.") return if isinstance(self.services, list): - from warnings import warn + from warnings import simplefilter, warn + simplefilter("always", DeprecationWarning) warn( - "Services list will be deprecated in future versions. Use Services objects instead.", + "Services list will be deprecated in the next version. Use Services objects instead.", DeprecationWarning, ) self.set_services_targets_from_list(settings)