mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Merge pull request #271 from chrismeyersfsu/fix-license_2
allow config endpoint to posted to without license data
This commit is contained in:
commit
3b67a24057
@ -238,7 +238,8 @@ class ApiV1ConfigView(APIView):
|
||||
# Sanity check: If this license includes system tracking, make
|
||||
# sure that we have a valid MongoDB to point to, and complain if
|
||||
# we do not.
|
||||
if (license_data['features']['system_tracking'] and settings.MONGO_HOST == NotImplemented):
|
||||
if ('features' in license_data and 'system_tracking' in license_data['features'] and
|
||||
license_data['features']['system_tracking'] and settings.MONGO_HOST == NotImplemented):
|
||||
return Response({
|
||||
'error': 'This license supports system tracking, which '
|
||||
'requires MongoDB to be installed. Since you are '
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user