You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2020/05/01 22:08:03 UTC
[kibble-scanners] branch master updated: Obvious fix: these
parameters are never used, and cause forward compatibility issues. So,
nix them.
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git
The following commit(s) were added to refs/heads/master by this push:
new 6f316a9 Obvious fix: these parameters are never used, and cause forward compatibility issues. So, nix them.
6f316a9 is described below
commit 6f316a93de7702cee34ff19a1c2b47b6e4767bc6
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri May 1 17:07:55 2020 -0500
Obvious fix: these parameters are never used, and cause forward compatibility issues. So, nix them.
Thanks to ncg81 for pointing this out.
---
src/plugins/brokers/kibbleES.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/plugins/brokers/kibbleES.py b/src/plugins/brokers/kibbleES.py
index e948a7c..461f750 100644
--- a/src/plugins/brokers/kibbleES.py
+++ b/src/plugins/brokers/kibbleES.py
@@ -44,12 +44,11 @@ class KibbleESWrapper(object):
return self.ES.index(index = index+'_'+doc_type, doc_type = '_doc', id = id, body = body)
def update(self, index, doc_type, id, body):
return self.ES.update(index = index+'_'+doc_type, doc_type = '_doc', id = id, body = body)
- def search(self, index, doc_type, size = 100, _source_include = None, body = None):
+ def search(self, index, doc_type, size = 100, body = None):
return self.ES.search(
index = index+'_'+doc_type,
doc_type = '_doc',
size = size,
- _source_include = _source_include,
body = body
)
def count(self, index, doc_type, body = None):
@@ -86,11 +85,10 @@ class KibbleESWrapperSeven(object):
return self.ES.index(index = index+'_'+doc_type, id = id, body = body)
def update(self, index, doc_type, id, body):
return self.ES.update(index = index+'_'+doc_type, id = id, body = body)
- def search(self, index, doc_type, size = 100, _source_include = None, body = None):
+ def search(self, index, doc_type, size = 100, body = None):
return self.ES.search(
index = index+'_'+doc_type,
size = size,
- _source_include = _source_include,
body = body
)
def count(self, index, doc_type, body = None):