feat(#2302): migrate dashboard to the single hive-host-sock Ident newtype
This commit is contained in:
parent
384dcae5f4
commit
1286029947
10 changed files with 37 additions and 210 deletions
|
|
@ -18,7 +18,7 @@ use serde::Deserialize;
|
|||
|
||||
use problem_details::ProblemDetails;
|
||||
|
||||
use super::{error_problem, idents::AgentName, strip_container_prefix};
|
||||
use super::{Ident, error_problem, strip_container_prefix};
|
||||
use crate::lifecycle;
|
||||
|
||||
#[derive(Deserialize)]
|
||||
|
|
@ -57,7 +57,7 @@ pub(super) async fn get_journal(
|
|||
// shellout below — the `lifecycle::list()` existence check would
|
||||
// catch them anyway, but rejecting at the boundary keeps the
|
||||
// failure mode crisp.
|
||||
let name = match AgentName::parse(&name) {
|
||||
let name = match Ident::parse(&name) {
|
||||
Ok(n) => n,
|
||||
Err(reason) => {
|
||||
return Err(ProblemDetails::from_status_code(StatusCode::BAD_REQUEST)
|
||||
|
|
|
|||
Loading…
Reference in a new issue