mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Revert "Set hard limit on number of commands in batch request to 256."
This reverts commit 79d22f8341
.
This commit is contained in:
parent
510eb79ff4
commit
3f88bc1484
@ -1471,23 +1471,6 @@ class NotRegisteredError(ExecutionError):
|
||||
format = _('Not registered yet')
|
||||
|
||||
|
||||
class BatchRequestLimitError(ExecutionError):
|
||||
"""
|
||||
**4307** Raised when a batch request contains too many commands
|
||||
|
||||
For example:
|
||||
>>> raise BatchRequestLimitError(limit=128)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
BatchRequestLimitError: Too many commands in request, limit is 128
|
||||
|
||||
"""
|
||||
|
||||
errno = 4307
|
||||
format = _('Too many commands in request, limit is %(limit)s')
|
||||
|
||||
|
||||
|
||||
##############################################################################
|
||||
# 5000 - 5999: Generic errors
|
||||
|
||||
|
@ -80,8 +80,6 @@ class batch(Command):
|
||||
|
||||
def execute(self, *args, **options):
|
||||
results=[]
|
||||
if len(args[0]) > 256:
|
||||
raise errors.BatchRequestLimitError(limit=256)
|
||||
for arg in args[0]:
|
||||
try:
|
||||
a = arg['params'][0]
|
||||
|
Loading…
Reference in New Issue
Block a user