Skip to content

Commit

Permalink
Worker: optional properties should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Feb 9, 2024
1 parent 8258deb commit 3c829f3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions voctopublish/voctopublish.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,9 @@ def __init__(self):
logging.error("Unknown worker type " + self.worker_type)
raise PublisherException("Unknown worker type " + self.worker_type)

if self.config["C3Tracker"]["host"] == "None":
self.host = self.config["C3Tracker"].get("host", "").strip()
if not self.host:
self.host = socket.getfqdn()
else:
self.host = self.config["C3Tracker"]["host"]

logging.debug("creating C3TTClient")
try:
Expand Down

0 comments on commit 3c829f3

Please sign in to comment.