Skip to content

Commit

Permalink
Add information about the root node
Browse files Browse the repository at this point in the history
  • Loading branch information
shroffk committed Jan 12, 2024
1 parent f6948e5 commit e3844ec
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import java.util.logging.Level;
import java.util.logging.Logger;

import static org.phoebus.applications.saveandrestore.model.Node.ROOT_FOLDER_UNIQUE_ID;

/**
* Controller implementing endpoints to retrieve service info
*/
Expand Down Expand Up @@ -66,6 +68,8 @@ public String info() {
}
saveRestoreServiceInfo.put("elastic", elasticInfo);

saveRestoreServiceInfo.put("rootNodeID", ROOT_FOLDER_UNIQUE_ID);

try {
return objectMapper.writeValueAsString(saveRestoreServiceInfo);
} catch (JsonProcessingException e) {
Expand Down

0 comments on commit e3844ec

Please sign in to comment.