Skip to content

Commit

Permalink
Bring 'cluster' back to expected value for telegraf use.
Browse files Browse the repository at this point in the history
  • Loading branch information
athornton committed Mar 26, 2024
1 parent 0946f25 commit aadb0e0
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/rubin_influx_tools/taskmaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,10 @@ async def populate_webhooks(self, bkt: BucketGet) -> None:
else webhook["channel"]
)
cluster = (
webhook["phalanx_env"]
if webhook["phalanx_env"]
webhook["phalanx_host"]
if webhook["phalanx_host"]
else (
webhook["phalanx_host"]
if webhook["phalanx_host"]
else (
channel[8:]
if channel.startswith("#status-")
else (
channel[1:] if channel.startswith("#") else channel
)
)
channel[7:] if channel.startswith("status-") else channel
)
)
lp_str += (
Expand Down

0 comments on commit aadb0e0

Please sign in to comment.