mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
when writing the rsyslog config, do it post-commit
there's a race condition if we do this pre-commit where the correct value isn't actually *persisted* to the database yet, and we end up saving the *prior* setting values
This commit is contained in:
committed by
Christian Adams
parent
f70a76109c
commit
bba680671b
@@ -288,7 +288,7 @@ def handle_setting_changes(setting_keys):
|
|||||||
setting.startswith('LOG_AGGREGATOR')
|
setting.startswith('LOG_AGGREGATOR')
|
||||||
for setting in setting_keys
|
for setting in setting_keys
|
||||||
]):
|
]):
|
||||||
reconfigure_rsyslog()
|
connection.on_commit(reconfigure_rsyslog)
|
||||||
|
|
||||||
|
|
||||||
@task(queue='tower_broadcast_all')
|
@task(queue='tower_broadcast_all')
|
||||||
|
|||||||
Reference in New Issue
Block a user