Improved docs of "parse_usages" method

This commit is contained in:
VakarisZ 2019-08-01 10:09:40 +03:00
parent a1bc097164
commit 32e930559d
1 changed files with 2 additions and 2 deletions

View File

@ -124,8 +124,8 @@ class UsageTechnique(AttackTechnique):
def parse_usages(usage): def parse_usages(usage):
""" """
Parses data from database and translates usage enums into strings Parses data from database and translates usage enums into strings
:param usage: :param usage: Usage telemetry that contains fields: {'usage': 'SMB', 'status': 1}
:return: :return: usage string
""" """
try: try:
usage['usage'] = UsageEnum[usage['usage']].value[usage['status']] usage['usage'] = UsageEnum[usage['usage']].value[usage['status']]