mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -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:
@@ -290,6 +290,8 @@ class ApiV1ConfigView(APIView):
|
|||||||
has_error = e.errno
|
has_error = e.errno
|
||||||
break
|
break
|
||||||
|
|
||||||
|
TowerSettings.objects.filter(key="LICENSE").delete()
|
||||||
|
|
||||||
# Only stop mongod if license removal succeeded
|
# Only stop mongod if license removal succeeded
|
||||||
if has_error is None:
|
if has_error is None:
|
||||||
mongodb_control.delay('stop')
|
mongodb_control.delay('stop')
|
||||||
|
|||||||
Reference in New Issue
Block a user