IDPS: handle empty metadata value (#5357)

This commit is contained in:
kulikov-a 2021-11-15 19:09:26 +03:00 committed by GitHub
parent d29b652cc0
commit 035dc45063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ class RuleCache(object):
elif parts[0] in record['metadata']:
new_content = parts[1]
else:
new_content = parts[1] if len(parts) > 1 else None
new_content = parts[1] if len(parts) > 1 else ""
record['metadata'][parts[0]] = new_content
else:
record[prop] = value