Skip to content

Commit 9883eec

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.
1 parent be3cdf6 commit 9883eec

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
@@ -708,6 +708,12 @@ static void runat_push_cb (flux_t *h,
708708
errstr = "commands array is empty";
709709
goto error;
710710
}
711+
/* Transition: treat "cleanup" as an alias for "shutdown"
712+
* so framework projects that are still using flux admin cleanup-push
713+
* can add commands to "shutdown".
714+
*/
715+
if (streq (name, "cleanup"))
716+
name = "shutdown";
711717
json_array_foreach (commands, index, el) {
712718
const char *cmdline = json_string_value (el);
713719
if (!cmdline || strlen (cmdline) == 0) {

0 commit comments

Comments
 (0)