Browse Source

Try and fix the link in the message.

Joe Clarke 1 year ago
parent
commit
7e8803f6da
1 changed files with 1 additions and 1 deletions
  1. 1 1
      automation/services/dnac-hook.py

+ 1 - 1
automation/services/dnac-hook.py

@@ -60,6 +60,6 @@ if __name__ == "__main__":
     elif j["details"]["Assurance Issue Priority"] == "P1":
         mt = MessageType(MessageType.BAD)
 
-    message = f"{mt.value} Device **{j['details']['Device']}** {verb} <a href='{j['ciscoDnaEventLink']}'>issue</a>: {j['details']['Assurance Issue Details']}"
+    message = f'{mt.value} Device **{j["details"]["Device"]}** {verb} <a href="{j["ciscoDnaEventLink"]}">issue</a> : {j["details"]["Assurance Issue Details"]}'
 
     print(requests.post(DNAC_WEBHOOK, headers=HEADERS, json={"markdown": message}))