Code Review
/
integration
/
test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Sorted the variables alphabetically
[integration/test.git]
/
csit
/
scripts
/
push_test_data.py
diff --git
a/csit/scripts/push_test_data.py
b/csit/scripts/push_test_data.py
index 9efaa213c2b4da7ec739a95bbc8db8cd4fbaceb7..976b2277e6f5388b923d02ff0dbe6f96abf079bd 100755
(executable)
--- a/
csit/scripts/push_test_data.py
+++ b/
csit/scripts/push_test_data.py
@@
-94,8
+94,12
@@
BODY = data_gen.generate()
print(json.dumps(BODY, indent=4))
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'])
try:
index = '{}-{}'.format(BODY['project'],
BODY['subject'])