mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
Add a space to an error message. Fixes AC-1156.
This commit is contained in:
@@ -242,7 +242,9 @@ def process_graph(graph, task_capacity):
|
||||
start_status = node_obj.start(error_callback=error_handler)
|
||||
if not start_status:
|
||||
node_obj.status = 'failed'
|
||||
node_obj.job_explanation += "Task failed pre-start check"
|
||||
if node_obj.job_explanation:
|
||||
node_obj.job_explanation += ' '
|
||||
node_obj.job_explanation += 'Task failed pre-start check.'
|
||||
node_obj.save()
|
||||
# TODO: Run error handler
|
||||
continue
|
||||
|
||||
@@ -572,7 +572,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
||||
opts = dict([(field, start_args.get(field, '')) for field in needed])
|
||||
if not all(opts.values()):
|
||||
missing_fields = ', '.join([k for k,v in opts.items() if not v])
|
||||
self.job_explanation = u'Missing needed fields: %s' % missing_fields
|
||||
self.job_explanation = u'Missing needed fields: %s.' % missing_fields
|
||||
self.save(update_fields=['job_explanation'])
|
||||
return False
|
||||
task_class().apply_async((self.pk,), opts, link_error=error_callback)
|
||||
|
||||
Reference in New Issue
Block a user