mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 10:41:05 -03:30
Strengthen attribute check for Tower configuration validations
This commit is contained in:
@@ -446,7 +446,9 @@ register(
|
||||
|
||||
|
||||
def logging_validate(serializer, attrs):
|
||||
if not serializer.instance:
|
||||
if not serializer.instance or \
|
||||
not hasattr(serializer.instance, 'LOG_AGGREGATOR_HOST') or \
|
||||
not hasattr(serializer.instance, 'LOG_AGGREGATOR_TYPE'):
|
||||
return attrs
|
||||
errors = []
|
||||
if attrs.get('LOG_AGGREGATOR_ENABLED', False):
|
||||
|
||||
Reference in New Issue
Block a user