mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 21:35:01 -02:30
fix a traceback if tower doesn't have LOG_AGGREGATOR_TOWER_UUID set
see: #5527
This commit is contained in:
committed by
Matthew Jones
parent
8ff09ec4f5
commit
255d6afb49
@@ -13,7 +13,8 @@ class LogstashFormatter(LogstashFormatterVersion1):
|
|||||||
ret = super(LogstashFormatter, self).__init__(**kwargs)
|
ret = super(LogstashFormatter, self).__init__(**kwargs)
|
||||||
if settings_module:
|
if settings_module:
|
||||||
self.host_id = settings_module.CLUSTER_HOST_ID
|
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
|
self.message_type = settings_module.LOG_AGGREGATOR_TYPE
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user