mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
Merge pull request #5548 from chrismeyersfsu/fix-blunder
fix up nightlies
This commit is contained in:
commit
bdbd2a9712
@ -2,11 +2,9 @@
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import uuid
|
||||
|
||||
# Django
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.conf import settings
|
||||
|
||||
# Tower
|
||||
from awx.conf import fields, register
|
||||
@ -316,20 +314,13 @@ register(
|
||||
category=_('Logging'),
|
||||
category_slug='logging',
|
||||
)
|
||||
|
||||
|
||||
def init_LOG_AGGREGATOR_TOWER_UUID():
|
||||
unique_id = uuid.uuid4()
|
||||
settings.LOG_AGGREGATOR_TOWER_UUID = unique_id
|
||||
return unique_id
|
||||
|
||||
|
||||
register(
|
||||
'LOG_AGGREGATOR_TOWER_UUID',
|
||||
field_class=fields.CharField,
|
||||
allow_blank=True,
|
||||
label=_('Cluster-wide Tower unique identifier.'),
|
||||
help_text=_('Useful to uniquely identify Tower instances.'),
|
||||
category=_('Logging'),
|
||||
category_slug='logging',
|
||||
default=init_LOG_AGGREGATOR_TOWER_UUID,
|
||||
default=None,
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user