From 3072dac568d7776a25f32e9822993da155bce478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 22 Sep 2021 11:47:14 +0200 Subject: [PATCH] fix: name is passed to super --- .../ObjectConstructor/CowrieMISPObject.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/feed-generator-from-redis/ObjectConstructor/CowrieMISPObject.py b/examples/feed-generator-from-redis/ObjectConstructor/CowrieMISPObject.py index 1bf98ca..b69c153 100644 --- a/examples/feed-generator-from-redis/ObjectConstructor/CowrieMISPObject.py +++ b/examples/feed-generator-from-redis/ObjectConstructor/CowrieMISPObject.py @@ -8,12 +8,10 @@ from pymisp.tools.abstractgenerator import AbstractMISPObjectGenerator class CowrieMISPObject(AbstractMISPObjectGenerator): def __init__(self, dico_val, **kargs): self._dico_val = dico_val - self.name = "cowrie" - # Enforce attribute date with timestamp super(CowrieMISPObject, self).__init__('cowrie', - default_attributes_parameters={'timestamp': int(time.time())}, - **kargs) + default_attributes_parameters={'timestamp': int(time.time())}, + **kargs) self.generate_attributes() def generate_attributes(self):