Add scm revision to the job model

This also cleans up flake8 issues
This commit is contained in:
Matthew Jones
2016-10-20 15:18:05 -04:00
parent ca32c5fd21
commit 6e22460f1e
6 changed files with 33 additions and 20 deletions
+1 -1
View File
@@ -1930,7 +1930,7 @@ class JobSerializer(UnifiedJobSerializer, JobOptionsSerializer):
fields = ('*', 'job_template', 'passwords_needed_to_start', 'ask_variables_on_launch',
'ask_limit_on_launch', 'ask_tags_on_launch', 'ask_skip_tags_on_launch',
'ask_job_type_on_launch', 'ask_inventory_on_launch', 'ask_credential_on_launch',
'allow_simultaneous', 'artifacts',)
'allow_simultaneous', 'artifacts', 'scm_revision',)
def get_related(self, obj):
res = super(JobSerializer, self).get_related(obj)