auto approve updates when manually running a patch scan from agent's context menu
@@ -27,7 +27,7 @@ def get_win_updates(request, pk):
def run_update_scan(request, pk):
agent = get_object_or_404(Agent, pk=pk)
check_for_updates_task.apply_async(
- queue="wupdate", kwargs={"pk": agent.pk, "wait": False}
+ queue="wupdate", kwargs={"pk": agent.pk, "wait": False, "auto_approve": True}
)
return Response("ok")
