diff --git a/dojo/importers/endpoint_manager.py b/dojo/importers/endpoint_manager.py index 7f408c909dc..399cab1dd14 100644 --- a/dojo/importers/endpoint_manager.py +++ b/dojo/importers/endpoint_manager.py @@ -41,6 +41,9 @@ def add_endpoints_to_unsaved_finding( query=endpoint.query, fragment=endpoint.fragment, product=finding.test.engagement.product) + if hasattr(endpoint, 'unsaved_tags') and endpoint.unsaved_tags: + logger.debug(f"Applying tags to endpoint {ep.host}: {endpoint.unsaved_tags}") + ep.tags.add(*[tag.lower() for tag in endpoint.unsaved_tags]) except (MultipleObjectsReturned): msg = ( f"Endpoints in your database are broken. "