Browse Source

Call the property correctly.

Joe Clarke 1 year ago
parent
commit
d8b736aa51
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,4 +60,4 @@ if __name__ == "__main__":
 
     message = f"{mt} Device **{j['details']['Device']}** has [issue]({j['ciscoDnaEventLink']}): {j['details']['Assurance Issue Details']}"
 
-    print(requests.post(DNAC_WEBHOOK, headers=HEADERS, json={"message": message}))
+    print(requests.post(DNAC_WEBHOOK, headers=HEADERS, json={"markdown": message}))