Skip to content

Commit d982d81

Browse files
committed
small fixes to #3985
1 parent 01e730a commit d982d81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nexus/tests/integration_tests/ip_pools.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ async fn test_ip_pool_with_silo(cptestctx: &ControlPlaneTestContext) {
288288
};
289289
let created_pool = create_pool(client, &params).await;
290290
assert_eq!(created_pool.identity.name, "p0");
291-
assert!(created_pool.silo_id.is_some());
292291

293-
let silo_id = created_pool.silo_id.unwrap();
292+
let silo_id =
293+
created_pool.silo_id.expect("Expected pool to have a silo_id");
294294

295295
// now we'll create another IP pool using that silo ID
296296
let params = IpPoolCreate {

nexus/types/src/external_api/params.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ pub struct IpPoolCreate {
736736
/// silo can draw from that pool.
737737
pub silo: Option<NameOrId>,
738738

739-
/// Whether the IP pool is considered a default pool for its scope (fleet,
739+
/// Whether the IP pool is considered a default pool for its scope (fleet
740740
/// or silo). If a pool is marked default and is associated with a silo,
741741
/// instances created in that silo will draw IPs from that pool unless
742742
/// another pool is specified at instance create time.

0 commit comments

Comments
 (0)