Skip to content

Commit

Permalink
Merge pull request #496 from airbnb/ryandeivert-output-method-fix
Browse files Browse the repository at this point in the history
[lambda][alert] fixing small bug where method should be classmethod
  • Loading branch information
ryandeivert authored Nov 21, 2017
2 parents cddd3bf + ff640c1 commit dc1cec8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stream_alert/alert_processor/outputs/output_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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:
Expand Down

0 comments on commit dc1cec8

Please sign in to comment.