label has IP adress of server

This commit is contained in:
iLLiCiTiT 2020-02-08 11:30:38 +01:00
parent 49f9dbf418
commit e9c4ec7fee

View file

@ -1,7 +1,6 @@
import os
import sys
import json
import time
import threading
import signal
import socket
@ -19,9 +18,10 @@ log = Logger().get_logger("Event storer")
action_identifier = (
"event.server.status" + os.environ["FTRACK_EVENT_SUB_ID"]
)
host_ip = socket.gethostbyname(socket.gethostname())
action_data = {
"label": "Pype Admin",
"variant": "- Event server Status",
"variant": "- Event server Status ({})".format(host_ip),
"description": "Get Infromation about event server",
"actionIdentifier": action_identifier,
"icon": None