Fix webex room url
Build, push image, and notify Watchtower / build-image (push) Successful in 39s
Build, push image, and notify Watchtower / notify (push) Successful in 11s

This commit is contained in:
2026-08-17 15:57:16 +02:00
parent 8f768a4d35
commit 656afa6e2d
+3 -2
View File
@@ -235,6 +235,7 @@ def alert():
alert_id=str(saved_alert.inserted_id) alert_id=str(saved_alert.inserted_id)
) )
webex_status = "reused_room" webex_status = "reused_room"
room_link = f"https://web.webex.com/spaces/{webex_room_id}"
except Exception as e: except Exception as e:
current_app.logger.exception("Failed to send follow-up message to existing Webex room") current_app.logger.exception("Failed to send follow-up message to existing Webex room")
webex_status = f"message_failed: {str(e)}" webex_status = f"message_failed: {str(e)}"
@@ -253,10 +254,10 @@ def alert():
webex_room_id = room_details.get("id") webex_room_id = room_details.get("id")
room_title = room_details.get("title", room_title) room_title = room_details.get("title", room_title)
# Set room_link if your webex_manager returns meetingLink or custom URL # Set room_link if your webex_manager returns meetingLink or custom URL
room_link = room_details.get("meetingLink") or f"webexteams://im?space={webex_room_id}" room_link = room_details.get("meetingLink") or f"https://web.webex.com/spaces/{webex_room_id}"
else: else:
webex_room_id = room_details webex_room_id = room_details
room_link = f"webexteams://im?space={webex_room_id}" room_link = f"https://web.webex.com/spaces/{webex_room_id}"
webex_status = "created_new_room" webex_status = "created_new_room"