Skip to content

Commit

Permalink
Merge pull request #271 from pinterest/ParallelReplaceNodeAction
Browse files Browse the repository at this point in the history
Add ParallelReplaceNodeAction
  • Loading branch information
yisheng-zhou authored May 14, 2024
2 parents 3e6f76d + a1e7d2c commit 403a00b
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,32 @@ public boolean failIfNoNodeIds() {
}
}

public static class ParallelReplaceNodeAction extends ParallelAction {
public ParallelReplaceNodeAction() {
super("Replace");
}

@Override
public Action getChildAction() {
return new NodeAction() {
@Override
public String getName() {
return "ReplaceNodeAction";
}
};
}

@Override
public boolean isCancelAllIfFailed() {
return true;
}

@Override
public boolean failIfNoNodeIds() {
return true;
}
}

public static class ParallelRebootNodeAction extends ParallelAction {
public ParallelRebootNodeAction() {
super("Reboot");
Expand Down

0 comments on commit 403a00b

Please sign in to comment.