Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b94fab4

Browse files
authoredDec 4, 2024··
Move hostname_extract under events and fix validator call (#1203)
1 parent 4b2ec71 commit b94fab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎plugins/inline/hostname_extract.py renamed to ‎plugins/events/hostname_extract.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def run(self, message: EventMessage) -> None:
1616
url = message.event.yeti_object
1717
self.logger.info(f"Extracting hostname from: {url.value}")
1818
o = urlparse(url.value)
19-
if observable.IPv4.is_valid(o.hostname):
19+
if observable.IPv4.validator(o.hostname):
2020
extracted_obs = observable.IPv4(value=o.hostname).save()
2121
else:
2222
extracted_obs = observable.Hostname(value=o.hostname).save()

0 commit comments

Comments
 (0)
Please sign in to comment.