Skip to content

Commit

Permalink
ssssstragglerssss
Browse files Browse the repository at this point in the history
  • Loading branch information
bnaecker committed May 3, 2024
1 parent 2b7bf26 commit cd22fe7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions clients/nexus-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,13 @@ impl TryFrom<&omicron_common::api::external::AllowedSourceIps>
use omicron_common::api::external::AllowedSourceIps;
match ips {
AllowedSourceIps::Any => Ok(types::AllowedSourceIps::Any),
AllowedSourceIps::List(list) => list
.iter()
.map(TryInto::try_into)
.collect::<Result<_, _>>()
.map(types::AllowedSourceIps::List),
AllowedSourceIps::List(list) => {
let list = list
.iter()
.map(TryInto::try_into)
.collect::<Result<Vec<_>, _>>()?;
Ok(types::AllowedSourceIps::List(types::IpAllowList::from(list)))
}
}
}
}

0 comments on commit cd22fe7

Please sign in to comment.