Skip to content

Commit 21689dc

Browse files
committed
fix(podman): inline quantities in resource error formatting
Signed-off-by: Shiju <[email protected]>
1 parent e00cfa4 commit 21689dc

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎crates/openshell-driver-podman/src/container.rs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -681,8 +681,7 @@ fn parse_podman_cpu_limit(
681681
.map(Some)
682682
.ok_or_else(|| {
683683
ComputeDriverError::Precondition(format!(
684-
"invalid podman cpu limit '{}'; expected positive cores or millicores",
685-
quantity
684+
"invalid podman cpu limit '{quantity}'; expected positive cores or millicores"
686685
))
687686
})
688687
}
@@ -698,8 +697,7 @@ fn parse_podman_memory_limit(
698697
};
699698
parse_memory_to_bytes(quantity).map(Some).ok_or_else(|| {
700699
ComputeDriverError::Precondition(format!(
701-
"invalid podman memory limit '{}'; expected positive bytes or a Kubernetes-style quantity",
702-
quantity
700+
"invalid podman memory limit '{quantity}'; expected positive bytes or a Kubernetes-style quantity"
703701
))
704702
})
705703
}

0 commit comments

Comments
 (0)