Merge pull request 'fix(fmt): reformat storage.rs map_err closure for rustfmt compliance' (#133) from fix/proxmox-full-parity into beta
Some checks failed
Release Beta / autotag (push) Successful in 11s
Test / frontend-tests (push) Successful in 1m41s
Test / frontend-typecheck (push) Successful in 1m53s
Release Beta / build-linux-arm64 (push) Successful in 11m46s
Test / rust-fmt-check (push) Successful in 15m59s
Release Beta / changelog (push) Successful in 2m38s
Test / rust-clippy (push) Successful in 17m44s
Release Beta / build-macos-arm64 (push) Failing after 12m49s
Test / rust-tests (push) Successful in 21m54s
Release Beta / build-linux-amd64 (push) Successful in 12m33s
Release Beta / build-windows-amd64 (push) Successful in 13m31s
Renovate / renovate (push) Failing after 31s
Some checks failed
Release Beta / autotag (push) Successful in 11s
Test / frontend-tests (push) Successful in 1m41s
Test / frontend-typecheck (push) Successful in 1m53s
Release Beta / build-linux-arm64 (push) Successful in 11m46s
Test / rust-fmt-check (push) Successful in 15m59s
Release Beta / changelog (push) Successful in 2m38s
Test / rust-clippy (push) Successful in 17m44s
Release Beta / build-macos-arm64 (push) Failing after 12m49s
Test / rust-tests (push) Successful in 21m54s
Release Beta / build-linux-amd64 (push) Successful in 12m33s
Release Beta / build-windows-amd64 (push) Successful in 13m31s
Renovate / renovate (push) Failing after 31s
Reviewed-on: #133
This commit is contained in:
commit
41134d6f4c
@ -43,10 +43,12 @@ pub async fn list_storage_content_iso(
|
|||||||
ticket: &str,
|
ticket: &str,
|
||||||
) -> Result<Vec<serde_json::Value>, String> {
|
) -> Result<Vec<serde_json::Value>, String> {
|
||||||
let path = format!("nodes/{}/storage/{}/content", node, storage);
|
let path = format!("nodes/{}/storage/{}/content", node, storage);
|
||||||
let response: serde_json::Value = client
|
let response: serde_json::Value = client.get(&path, Some(ticket)).await.map_err(|e| {
|
||||||
.get(&path, Some(ticket))
|
format!(
|
||||||
.await
|
"Failed to list storage content for {}/{}: {}",
|
||||||
.map_err(|e| format!("Failed to list storage content for {}/{}: {}", node, storage, e))?;
|
node, storage, e
|
||||||
|
)
|
||||||
|
})?;
|
||||||
|
|
||||||
response
|
response
|
||||||
.as_array()
|
.as_array()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user