This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 11c3a1b Not useful
11c3a1b is described below
commit 11c3a1beae13e68409dcdbc9daf5ce44fac68bc3
Author: Sebb <[email protected]>
AuthorDate: Sat Aug 22 00:13:33 2020 +0100
Not useful
---
tools/plugins/elastic.py | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/tools/plugins/elastic.py b/tools/plugins/elastic.py
index 8f5a537..c719694 100755
--- a/tools/plugins/elastic.py
+++ b/tools/plugins/elastic.py
@@ -196,18 +196,3 @@ class _indices_wrap(object):
def exists(self, *args, **kwargs):
return self.es.indices.exists(*args, **kwargs)
-
-def main():
- es = Elastic()
- print(
- "Versions: Library: %d %s Engine: %d (%s)"
- % (es.libraryMajor(), es.libraryVersion(), es.engineMajor(),
es.engineVersion())
- )
- try:
- print(es.indices.exists(index=es.db_mbox))
- print(es.indices.exists("test"))
- except ES_ConnectionError as e:
- print(type(e))
-
-if __name__ == "__main__":
- main()
\ No newline at end of file