Skip to content

Commit

Permalink
only treat get request for cmsrep
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Sep 3, 2016
1 parent d90e81d commit 99c0f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion es_cmsrep_apache.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def process (line, count):
if (count%1000)==0: print "Processed entries",count
if not send_payload("apache-cmsrep","access_log", id, dumps(payload), passwd_file="/data/es/es_secret"):
return False
if payload["verb"] == "HEAD": return True
if payload["verb"] != "GET": return True
items = payload["request"].replace("/cms/cpt/Software/download/","/cmssw/",1).split("/")
if len(items)<6: return True
if items[3] == "apt": items[3]="PRMS"
Expand Down

0 comments on commit 99c0f99

Please sign in to comment.