diff --git a/monkey/monkey_island/cc/services/aws_service.py b/monkey/monkey_island/cc/services/aws_service.py index d589fad96..6db1e7baf 100644 --- a/monkey/monkey_island/cc/services/aws_service.py +++ b/monkey/monkey_island/cc/services/aws_service.py @@ -28,7 +28,7 @@ class AWSService: def get_managed_instances(self) -> Sequence[Dict[str, str]]: raw_managed_instances_info = self._get_raw_managed_instances() - return _filter_instance_info_from_aws_response(raw_managed_instances_info) + return _filter_relevant_instance_info(raw_managed_instances_info) def _get_raw_managed_instances(self) -> Sequence[Dict[str, Any]]: """ @@ -57,7 +57,7 @@ class AWSService: pass -def _filter_instance_info_from_aws_response(raw_managed_instances_info: Sequence[Dict[str, Any]]): +def _filter_relevant_instance_info(raw_managed_instances_info: Sequence[Dict[str, Any]]): return [ { "instance_id": managed_instance[INSTANCE_ID_KEY],