Skip to content

Commit

Permalink
[grottext] adopt reviewer suggestion 2
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Fiddian-Green <[email protected]>
  • Loading branch information
andrewfg authored and ChimpDW committed Oct 7, 2023
1 parent 636d7e5 commit 4fa3809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/Extensions/grottext.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def grottext(conf,data,jsonmsg) :
if "url" in conf.extvar:
url = conf.extvar["url"]
else:
url = "http://" + conf.extvar["ip"] + ":" + str(conf.extvar["port"])
url = f"http://{conf.extvar['ip']}:{conf.extvar['port']}"

try:
r = requests.post(url, json = jsonmsg)
Expand Down

0 comments on commit 4fa3809

Please sign in to comment.