Procházet zdrojové kódy

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

Romain Rigaux před 8 roky
rodič
revize
6d33ecf
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)