Add note message type and improve messages

This commit is contained in:
2022-07-07 15:52:39 +00:00
parent 9a9caae923
commit fe6f34a3eb
8 changed files with 34 additions and 31 deletions

View File

@ -319,7 +319,7 @@ def run_hooks(config, cspec, cluster, nodes):
logger.info("Waiting 300s before starting hook run.")
sleep(300)
notifications.send_webhook(config, "begin", f"Running hook tasks for cluster {cluster.name}")
notifications.send_webhook(config, "begin", f"Cluster {cluster.name}: Running post-setup hook tasks")
cluster_hooks = cspec["hooks"][cluster.name]
@ -363,4 +363,4 @@ def run_hooks(config, cspec, cluster, nodes):
},
)
notifications.send_webhook(config, "success", f"Completed hook tasks for cluster {cluster.name}")
notifications.send_webhook(config, "success", f"Cluster {cluster.name}: Completed post-setup hook tasks")