Skip to content

Commit

Permalink
save to disk when changing name
Browse files Browse the repository at this point in the history
  • Loading branch information
car-roll committed Sep 19, 2023
1 parent 231db94 commit 13bab6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/hudson/slaves/Cloud.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ public HttpResponse doConfirmRename(@QueryParameter String newName) throws IOExc
throw new Failure(validationError.getMessage());
}
this.name = newName;
Jenkins.get().save();

// take the user to the renamed cloud top page.
return HttpResponses.redirectTo("../" + Functions.encode(newName));
Expand Down

0 comments on commit 13bab6c

Please sign in to comment.