From 56d0cbfeff5860696df2c263be26dcabe6754235 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 26 Jan 2016 16:28:50 -0500 Subject: [PATCH] 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 --- awx/api/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/api/views.py b/awx/api/views.py index 5a2864ae96..fc085acf89 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -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')