Skip to content

Commit

Permalink
Project updates do not run against hosts
Browse files Browse the repository at this point in the history
* The project update event has no host_id or host_name because they
  only run on localhost.
  • Loading branch information
chrismeyersfsu authored and fosterseth committed Feb 1, 2024
1 parent 527755d commit 2fa5116
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions awx/main/models/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ class BasePlaybookEvent(CreatedModifiedModel):
'parent_uuid',
'start_line',
'end_line',
'host_id',
'host_name',
'verbosity',
]
WRAPUP_EVENT = 'playbook_on_stats'
Expand Down Expand Up @@ -473,7 +471,7 @@ class JobEvent(BasePlaybookEvent):
An event/message logged from the callback when running a job.
"""

VALID_KEYS = BasePlaybookEvent.VALID_KEYS + ['job_id', 'workflow_job_id', 'job_created']
VALID_KEYS = BasePlaybookEvent.VALID_KEYS + ['job_id', 'workflow_job_id', 'job_created', 'host_id', 'host_name']
JOB_REFERENCE = 'job_id'

objects = DeferJobCreatedManager()
Expand Down

0 comments on commit 2fa5116

Please sign in to comment.