Skip to content
Snippets Groups Projects
Commit 4a69d567 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Crude possibility of no secret

parent 8f2f07a8
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ def getLastEvents(events, client, key, cert, cacert, secret): ...@@ -11,7 +11,7 @@ def getLastEvents(events, client, key, cert, cacert, secret):
try: try:
ses = Session() ses = Session()
req = Request('POST', 'https://warden-hub.cesnet.cz/warden3/getEvents?client='+ client +'&secret='+ secret +'&count=' + events) req = Request('POST', 'https://warden-hub.cesnet.cz/warden3/getEvents?client='+ client + ('&secret='+ secret if secret else "")+'&count=' + events)
pre = req.prepare() pre = req.prepare()
res = ses.send(pre, cert = (cert, key), verify=cacert) res = ses.send(pre, cert = (cert, key), verify=cacert)
except requests.exceptions.RequestException as error: except requests.exceptions.RequestException as error:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment