Explorar el Código

Avoid events. Only alert on issues.

Joe Clarke hace 1 año
padre
commit
671a1dfc05
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      automation/services/dnac-hook.py

+ 3 - 0
automation/services/dnac-hook.py

@@ -55,6 +55,9 @@ if __name__ == "__main__":
     logging.debug(json.dumps(j, indent=4))
 
     # seen_issues[det["issueId"]] = det["issueMessage"]
+    if "Assurance Issue Status" not in j["details"]:
+        print("{}")
+
     mt = MessageType(MessageType.WARNING)
     verb = "has an"
     if j["details"]["Assurance Issue Status"] != "active":