Skip to content

Commit 587573b

Browse files
committed
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. Note: although these commands are no longer interpreted by the shell, none of those projects appear to be relying on that.
1 parent e8004d4 commit 587573b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/broker/runat.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,12 @@ static void runat_push_cb (flux_t *h,
686686
errstr = "commands array is empty";
687687
goto error;
688688
}
689+
/* Transition: treat "cleanup" as an alias for "shutdown"
690+
* so framework projects that are still using flux admin cleanup-push
691+
* can add commands to "shutdown".
692+
*/
693+
if (streq (name, "cleanup"))
694+
name = "shutdown";
689695
json_array_foreach (commands, index, el) {
690696
const char *cmdline = json_string_value (el);
691697
if (!cmdline || strlen (cmdline) == 0) {

0 commit comments

Comments
 (0)