Skip to content

Commit 7a2ea16

Browse files
feat(rest-plugin): add clean shutdown to volume output
Signed-off-by: Tiago Castro <[email protected]>
1 parent f3eb8d7 commit 7a2ea16

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

control-plane/plugin/src/resources/utils.rs

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ lazy_static! {
2828
"ALLOCATED",
2929
"SNAPSHOTS",
3030
"SOURCE",
31+
"CLEAN-SHUTDOWN",
3132
];
3233
pub static ref SNAPSHOT_HEADERS: Row = row![
3334
"ID",

control-plane/plugin/src/resources/volume.rs

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ impl CreateRow for openapi::models::Volume {
6464
VolumeContentSource::snapshot(_) => "Snapshot",
6565
}
6666
})),
67+
optional_cell(state.health.as_ref().map(|h| h.clean_shutdown))
6768
]
6869
}
6970
}

0 commit comments

Comments
 (0)