Sorted the variables alphabetically
[integration/test.git] / csit / scripts / push_test_data.py
index 9efaa213c2b4da7ec739a95bbc8db8cd4fbaceb7..976b2277e6f5388b923d02ff0dbe6f96abf079bd 100755 (executable)
@@ -94,8 +94,12 @@ BODY = data_gen.generate()
 
 print(json.dumps(BODY, indent=4))
 
-# Try to send request to ELK DB.
+# Skip ELK update if it comes from sandbox.
+if BODY['jenkins-silo'] == 'sandbox':
+    print('silo is sandbox, ELK update is skipped')
+    sys.exit()
 
+# Try to send request to ELK DB.
 try:
     index = '{}-{}'.format(BODY['project'],
                            BODY['subject'])