From 82bc90c63f05567be603480dac9a650f60a2462d Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Fri, 5 Apr 2024 07:42:07 -0700 Subject: [PATCH] broker: allow cleanup-push to continue to work Problem: some framework projects are using "test personalities" that call flux admin cleanup-push. Accept "cleanup" as an alias for "shutdown" to allow those projects to continue to work while transitioning to the shutdown script. --- src/broker/runat.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/broker/runat.c b/src/broker/runat.c index 8ab9a9466114..97263a3252d0 100644 --- a/src/broker/runat.c +++ b/src/broker/runat.c @@ -708,6 +708,12 @@ static void runat_push_cb (flux_t *h, errstr = "commands array is empty"; goto error; } + /* Transition: treat "cleanup" as an alias for "shutdown" + * so framework projects that are still using flux admin cleanup-push + * can add commands to "shutdown". + */ + if (streq (name, "cleanup")) + name = "shutdown"; json_array_foreach (commands, index, el) { const char *cmdline = json_string_value (el); if (!cmdline || strlen (cmdline) == 0) {