diff --git a/plugins/inline/hostname_extract.py b/plugins/events/hostname_extract.py similarity index 94% rename from plugins/inline/hostname_extract.py rename to plugins/events/hostname_extract.py index ff4b6e740..a25b704f8 100644 --- a/plugins/inline/hostname_extract.py +++ b/plugins/events/hostname_extract.py @@ -16,7 +16,7 @@ def run(self, message: EventMessage) -> None: url = message.event.yeti_object self.logger.info(f"Extracting hostname from: {url.value}") o = urlparse(url.value) - if observable.IPv4.is_valid(o.hostname): + if observable.IPv4.validator(o.hostname): extracted_obs = observable.IPv4(value=o.hostname).save() else: extracted_obs = observable.Hostname(value=o.hostname).save()