Skip to content

Commit

Permalink
Merge branch 'main' into refactor-int-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ocervell authored Nov 13, 2024
2 parents f2d4878 + 5546b82 commit 1b4d4f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion secator/runners/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,12 @@ def __init__(self, inputs=[], **run_opts):
caller = run_opts.get('caller', None)
results = run_opts.pop('results', [])
context = run_opts.pop('context', {})
self.skip_if_no_inputs = run_opts.pop('skip_if_no_inputs', False)

# Prepare validators
input_validators = [self._validate_input_nonempty]
input_validators = []
if not self.skip_if_no_inputs:
input_validators.append(self._validate_input_nonempty)
if not caller:
input_validators.append(self._validate_chunked_input)
validators = {'validate_input': input_validators}
Expand Down

0 comments on commit 1b4d4f1

Please sign in to comment.