Skip to content

Commit 4ed48c8

Browse files
committed
fmt
1 parent 6901c92 commit 4ed48c8

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

nexus/db-model/src/deployment.rs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ use nexus_db_schema::schema::{
2525
bp_omicron_physical_disk, bp_omicron_zone, bp_omicron_zone_nic,
2626
bp_oximeter_read_policy, bp_pending_mgs_update_host_phase_1,
2727
bp_pending_mgs_update_rot, bp_pending_mgs_update_rot_bootloader,
28-
bp_pending_mgs_update_sp, bp_sled_metadata, bp_target,
29-
debug_log_blueprint_planning,
30-
bp_single_measurements,
28+
bp_pending_mgs_update_sp, bp_single_measurements, bp_sled_metadata,
29+
bp_target, debug_log_blueprint_planning,
3130
};
32-
use nexus_types::deployment::BlueprintSingleMeasurement;
3331
use nexus_types::deployment::BlueprintPhysicalDiskDisposition;
32+
use nexus_types::deployment::BlueprintSingleMeasurement;
3433
use nexus_types::deployment::BlueprintTarget;
3534
use nexus_types::deployment::BlueprintZoneConfig;
3635
use nexus_types::deployment::BlueprintZoneDisposition;
@@ -66,9 +65,9 @@ use omicron_common::disk::DiskIdentity;
6665
use omicron_common::zpool_name::ZpoolName;
6766
use omicron_uuid_kinds::{
6867
BlueprintKind, BlueprintUuid, DatasetKind, ExternalIpKind, ExternalIpUuid,
69-
GenericUuid, MupdateOverrideKind, OmicronZoneKind, OmicronZoneUuid,
70-
PhysicalDiskKind, SledKind, SledUuid, ZpoolKind, ZpoolUuid,
71-
MeasurementKind,
68+
GenericUuid, MeasurementKind, MupdateOverrideKind, OmicronZoneKind,
69+
OmicronZoneUuid, PhysicalDiskKind, SledKind, SledUuid, ZpoolKind,
70+
ZpoolUuid,
7271
};
7372
use sled_agent_types::inventory::OmicronZoneDataset;
7473
use sled_hardware_types::BaseboardId;
@@ -1268,8 +1267,6 @@ impl BpSingleMeasurement {
12681267
}
12691268
}
12701269

1271-
1272-
12731270
#[derive(Queryable, Clone, Debug, Selectable, Insertable)]
12741271
#[diesel(table_name = bp_omicron_zone_nic)]
12751272
pub struct BpOmicronZoneNic {

nexus/db-queries/src/db/datastore/deployment.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ use nexus_db_model::BpPendingMgsUpdateHostPhase1;
5858
use nexus_db_model::BpPendingMgsUpdateRot;
5959
use nexus_db_model::BpPendingMgsUpdateRotBootloader;
6060
use nexus_db_model::BpPendingMgsUpdateSp;
61+
use nexus_db_model::BpSingleMeasurement;
6162
use nexus_db_model::BpSledMetadata;
6263
use nexus_db_model::BpTarget;
6364
use nexus_db_model::DbArtifactVersion;
@@ -72,7 +73,6 @@ use nexus_db_model::SpType;
7273
use nexus_db_model::SqlU16;
7374
use nexus_db_model::TufArtifact;
7475
use nexus_db_model::to_db_typed_uuid;
75-
use nexus_db_model::BpSingleMeasurement;
7676
use nexus_db_schema::enums::HwM2SlotEnum;
7777
use nexus_db_schema::enums::HwRotSlotEnum;
7878
use nexus_db_schema::enums::SpTypeEnum;
@@ -286,8 +286,6 @@ impl DataStore {
286286
})
287287
.collect::<Vec<_>>();
288288

289-
290-
291289
let omicron_physical_disks = blueprint
292290
.sleds
293291
.iter()
@@ -1325,7 +1323,6 @@ impl DataStore {
13251323
}
13261324
}
13271325

1328-
13291326
// Assemble a mutable map of all the NICs found, by NIC id. As we
13301327
// match these up with the corresponding zone below, we'll remove items
13311328
// from this set. That way we can tell if the same NIC was used twice

nexus/db-schema/src/schema.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2215,7 +2215,6 @@ table! {
22152215

22162216
allow_tables_to_appear_in_same_query!(bp_single_measurements, tuf_artifact);
22172217

2218-
22192218
table! {
22202219
bp_omicron_zone (blueprint_id, id) {
22212220
blueprint_id -> Uuid,

nexus/src/app/background/tasks/blueprint_execution.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,12 @@ mod test {
241241
StepOutcome, StepStatus,
242242
};
243243
use nexus_types::deployment::{
244-
Blueprint, BlueprintHostPhase2DesiredSlots, BlueprintSledConfig,
245-
BlueprintSource, BlueprintTarget, BlueprintZoneConfig,
246-
BlueprintZoneDisposition, BlueprintZoneImageSource, BlueprintZoneType,
244+
Blueprint, BlueprintHostPhase2DesiredSlots, BlueprintMeasurements,
245+
BlueprintSledConfig, BlueprintSource, BlueprintTarget,
246+
BlueprintZoneConfig, BlueprintZoneDisposition,
247+
BlueprintZoneImageSource, BlueprintZoneType,
247248
CockroachDbPreserveDowngrade, OximeterReadMode, PendingMgsUpdates,
248249
blueprint_zone_type,
249-
BlueprintMeasurements,
250250
};
251251
use nexus_types::external_api::views::SledState;
252252
use omicron_common::address::Ipv6Subnet;

0 commit comments

Comments
 (0)