diff --git a/sled-agent/src/rack_setup/service.rs b/sled-agent/src/rack_setup/service.rs index 460aaa7a87..8c333b4294 100644 --- a/sled-agent/src/rack_setup/service.rs +++ b/sled-agent/src/rack_setup/service.rs @@ -593,11 +593,8 @@ impl ServiceInner { } for zone in &sled_config.zones { - // XXX-dap TODO-cleanup kind of a cheating way to use the - // existing implementation - let native_zone_config = zone.clone(); if let Some((dataset_name, dataset_address)) = - native_zone_config.dataset_name_and_address() + zone.dataset_name_and_address() { datasets.push(NexusTypes::DatasetCreateRequest { zpool_id: dataset_name.pool().id(),