Explorar o código

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

Romain Rigaux %!s(int64=8) %!d(string=hai) anos
pai
achega
6d33ecf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)