def ResetStatus(request, server_id): resp = dict(message="Began to Reset Status", status="info") resp = json.dumps(resp) vsmapi.reset_status(request, server_id) return HttpResponse(resp)
def action(self, request, obj_id): LOG.info("RESET_STATUS") vsmapi.reset_status(request, [obj_id])