mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
fix a traceback if tower doesn't have LOG_AGGREGATOR_TOWER_UUID set
see: #5527
This commit is contained in:
parent
8ff09ec4f5
commit
255d6afb49
@ -13,7 +13,8 @@ class LogstashFormatter(LogstashFormatterVersion1):
|
||||
ret = super(LogstashFormatter, self).__init__(**kwargs)
|
||||
if settings_module:
|
||||
self.host_id = settings_module.CLUSTER_HOST_ID
|
||||
self.tower_uuid = settings_module.LOG_AGGREGATOR_TOWER_UUID
|
||||
if hasattr(settings_module, 'LOG_AGGREGATOR_TOWER_UUID'):
|
||||
self.tower_uuid = settings_module.LOG_AGGREGATOR_TOWER_UUID
|
||||
self.message_type = settings_module.LOG_AGGREGATOR_TYPE
|
||||
return ret
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user