From ff640c12400470e63a9a800de161689d04e1454b Mon Sep 17 00:00:00 2001 From: Ryan Deivert Date: Tue, 21 Nov 2017 11:35:44 -0800 Subject: [PATCH] [lambda][alert] fixing small bug where method should be classmethod --- stream_alert/alert_processor/outputs/output_base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stream_alert/alert_processor/outputs/output_base.py b/stream_alert/alert_processor/outputs/output_base.py index 7f6f3d724..447e7b20f 100644 --- a/stream_alert/alert_processor/outputs/output_base.py +++ b/stream_alert/alert_processor/outputs/output_base.py @@ -303,7 +303,8 @@ def _get_default_properties(cls): """ pass - def output_cred_name(self, descriptor): + @classmethod + def output_cred_name(cls, descriptor): """Formats the output name for this credential by combining the service and the descriptor. @@ -313,7 +314,7 @@ def output_cred_name(self, descriptor): Returns: str: Formatted credential name (ie: slack_ryandchannel) """ - cred_name = str(self.__service__) + cred_name = str(cls.__service__) # should descriptor be enforced in all rules? if descriptor: