You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spot.apache.org by na...@apache.org on 2018/03/19 19:28:43 UTC

[34/42] incubator-spot git commit: fixed spot_decoder()

fixed spot_decoder()


Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/8ff0e473
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/8ff0e473
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/8ff0e473

Branch: refs/heads/SPOT-181_ODM
Commit: 8ff0e4730dd05e10bf8908ed7691dd85a4cf35ff
Parents: b5cf634
Author: tpltnt <tp...@dropcut.net>
Authored: Thu Jan 25 11:40:54 2018 +0100
Committer: tpltnt <tp...@dropcut.net>
Committed: Thu Jan 25 11:40:54 2018 +0100

----------------------------------------------------------------------
 spot-ingest/pipelines/proxy/bluecoat.py | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/8ff0e473/spot-ingest/pipelines/proxy/bluecoat.py
----------------------------------------------------------------------
diff --git a/spot-ingest/pipelines/proxy/bluecoat.py b/spot-ingest/pipelines/proxy/bluecoat.py
index 54c3b28..5667204 100644
--- a/spot-ingest/pipelines/proxy/bluecoat.py
+++ b/spot-ingest/pipelines/proxy/bluecoat.py
@@ -88,11 +88,17 @@ def main():
 
 
 def spot_decoder(s):
+    """
+    Dummy decoder function.
 
+    :param s: input to decode
+    :returns: s
+    """
     if s is None:
         return None
     return s
 
+
 def split_log_entry(line):
     """
     Split the given line into its fields.
@@ -106,6 +112,7 @@ def split_log_entry(line):
     lex.commenters = ''
     return list(lex)
 
+
 def proxy_parser(proxy_fields):
     """
     Parse and normalize data.