Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
fixups
Browse files Browse the repository at this point in the history
Signed-off-by: johnsonw <[email protected]>
  • Loading branch information
johnsonw committed Nov 17, 2020
1 parent 47ad645 commit 27b9fd4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions iml-graphql-queries/src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub mod list {
filesystems
uuid
mount_path: mountPath
fs_type: fsType
}
}
"#;
Expand Down
3 changes: 2 additions & 1 deletion iml-manager-cli/src/display_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ impl IntoTable for (Vec<Host>, Vec<TargetRecord>) {
let (hosts, targets) = self;

generate_table(
&["Name", "State", "Active Host", "Filesystems", "UUID"],
&["Name", "State", "Active Host", "Filesystems", "UUID", "fs_type"],
targets.into_iter().map(|x| {
let active_host = x
.active_host_id
Expand All @@ -298,6 +298,7 @@ impl IntoTable for (Vec<Host>, Vec<TargetRecord>) {
active_host,
x.filesystems.join(" "),
x.uuid,
x.fs_type.map(|x| x.to_string().to_lowercase()).unwrap_or_else(|| "".into()),
]
}),
)
Expand Down
1 change: 1 addition & 0 deletions iml-wire-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2111,6 +2111,7 @@ pub struct LustreClient {
#[cfg_attr(feature = "postgres-interop", derive(sqlx::Type))]
#[cfg_attr(feature = "postgres-interop", sqlx(rename = "fs_type"))]
#[cfg_attr(feature = "postgres-interop", sqlx(rename_all = "lowercase"))]
#[serde(rename_all = "lowercase")]
#[derive(PartialEq, Eq, Clone, Debug, serde::Serialize, serde::Deserialize, Ord, PartialOrd)]
pub enum FsType {
Zfs,
Expand Down

0 comments on commit 27b9fd4

Please sign in to comment.