mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Cover DELETEing the license from database config
Fix the standard license delete behavior on the /config endpoint. It was covered elsewhere but this is the common path for license posting/removing
This commit is contained in:
parent
966e40d030
commit
56d0cbfeff
@ -290,6 +290,8 @@ class ApiV1ConfigView(APIView):
|
||||
has_error = e.errno
|
||||
break
|
||||
|
||||
TowerSettings.objects.filter(key="LICENSE").delete()
|
||||
|
||||
# Only stop mongod if license removal succeeded
|
||||
if has_error is None:
|
||||
mongodb_control.delay('stop')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user