Skip to content

Commit

Permalink
Merge pull request #354 from CJHarms/ffagent-plugin-fixes
Browse files Browse the repository at this point in the history
FF Agent Plugin Fixes
(Typo and Debugging)
  • Loading branch information
Schrolli91 authored Feb 22, 2018
2 parents 0468db2 + 3ed90b4 commit aa20cd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/FFAgent/FFAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ def run(typ,freq,data):
"selectiveCallCode": selectiveCallCode,
"hmac": hmac.new(webApiKey, webApiToken + selectiveCallCode + accessToken + alarmData, digestmod=hashlib.sha256).hexdigest()
}
logging.debug(alarmHeaders)

if globalVars.config.get("FFAgent", "live") == "1":
r = requests.post(url, data=alarmData, headers=headers, verify=serverCertFile, cert=(clientCertFile, clientCertPass))
r = requests.post(url, data=alarmData, headers=alarmHeaders, verify=serverCertFile, cert=(clientCertFile, clientCertPass))
else:
r = requests.post(url, data=alarmData, headers=alarmHeaders, verify=serverCertFile)

Expand Down

0 comments on commit aa20cd0

Please sign in to comment.