mirror of
https://github.com/ansible/awx.git
synced 2026-04-06 18:49:21 -02:30
Strengthen attribute check for Tower configuration validations
This commit is contained in:
@@ -1089,7 +1089,9 @@ register(
|
||||
|
||||
|
||||
def tacacs_validate(serializer, attrs):
|
||||
if not serializer.instance:
|
||||
if not serializer.instance or \
|
||||
not hasattr(serializer.instance, 'TACACSPLUS_HOST') or \
|
||||
not hasattr(serializer.instance, 'TACACSPLUS_SECRET'):
|
||||
return attrs
|
||||
errors = []
|
||||
host = serializer.instance.TACACSPLUS_HOST
|
||||
|
||||
Reference in New Issue
Block a user