mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -03:30
Merge pull request #5197 from ryanpetrello/fix-5141
only hide scm revision for manual projects if the key already exists
This commit is contained in:
commit
a844b11e88
@ -977,7 +977,7 @@ class ProjectSerializer(UnifiedJobTemplateSerializer, ProjectOptionsSerializer):
|
||||
|
||||
def to_representation(self, obj):
|
||||
ret = super(ProjectSerializer, self).to_representation(obj)
|
||||
if obj.scm_type == '':
|
||||
if 'scm_revision' in ret and obj.scm_type == '':
|
||||
ret['scm_revision'] = ''
|
||||
return ret
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user