allow WFJT nodes without required variables

This commit is contained in:
AlanCoding
2017-12-18 11:34:32 -05:00
parent c8e10adc96
commit 3439ba5f3b
2 changed files with 11 additions and 7 deletions

View File

@@ -3176,7 +3176,7 @@ class WorkflowJobTemplateNodeSerializer(LaunchConfigurationBaseSerializer):
success_nodes = serializers.PrimaryKeyRelatedField(many=True, read_only=True)
failure_nodes = serializers.PrimaryKeyRelatedField(many=True, read_only=True)
always_nodes = serializers.PrimaryKeyRelatedField(many=True, read_only=True)
exclude_errors = ('required') # required variables may be provided by WFJT or on launch
exclude_errors = ('required',) # required variables may be provided by WFJT or on launch
class Meta:
model = WorkflowJobTemplateNode
@@ -3574,7 +3574,7 @@ class JobLaunchSerializer(BaseSerializer):
template = self.context.get('template')
accepted, rejected, errors = template._accept_or_ignore_job_kwargs(
_exclude_errors=['prompts', 'required'], # make several error types non-blocking
_exclude_errors=['prompts'], # make several error types non-blocking
**attrs)
self._ignored_fields = rejected