mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
validate check for search length name
This commit is contained in:
@@ -118,6 +118,9 @@ def validate_standard_fields(object, uuids):
|
||||
else:
|
||||
uuids.append(object['id'])
|
||||
|
||||
if (object['type']) == 'batch' and len(object['name']) > 75:
|
||||
errors.append('ERROR: Search name is longer than 75 characters: %s' % (object['name']))
|
||||
|
||||
# if object['name'].endswith(" "):
|
||||
# errors.append(
|
||||
# "ERROR: name has trailing spaces: '%s'" %
|
||||
|
||||
Reference in New Issue
Block a user