소스 검색

HUE-5304 [indexer] Trigger only one time the install of search examples

Romain Rigaux 8 년 전
부모
커밋
6d33ecf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      apps/search/src/search/views.py

+ 1 - 1
apps/search/src/search/views.py

@@ -39,9 +39,9 @@ def install_examples(request):
   else:
     try:
       data = request.POST['data']
+      indexer_setup.Command().handle(data=data)
       if 'log_analytics_demo' == data: # Hue documents installed only one time
         search_setup.Command().handle_noargs()
-      indexer_setup.Command().handle(data=data)
       result['status'] = 0
     except Exception, e:
       LOG.exception(e)