Skip to content

Commit

Permalink
Update awx/api/serializers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
  • Loading branch information
djyasin and webknjaz authored Oct 16, 2024
1 parent fc46d3e commit ed9158f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion awx/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2490,7 +2490,6 @@ def get_field_from_model_or_attrs(fd):
else:
redundant_scm_fields = list(filter(lambda x: attrs.get(x, None), ['source_project', 'source_path', 'scm_branch']))
if redundant_scm_fields:
breakpoint()
raise serializers.ValidationError({"detail": _("Cannot set %s if not SCM type." % ' '.join(redundant_scm_fields))})

project = get_field_from_model_or_attrs('source_project')
Expand Down

0 comments on commit ed9158f

Please sign in to comment.