validate check for search length name

This commit is contained in:
bpatel
2021-04-20 12:49:32 -07:00
parent a40dc12832
commit 3e44ef77fa
+3
View File
@@ -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'" %