From 1b3365f86f73f74ce50b503ea47bc7c7b59e8d8e Mon Sep 17 00:00:00 2001 From: Sean Klein Date: Thu, 28 Jul 2022 12:34:54 -0400 Subject: [PATCH] Update scrimlet status on upsert --- nexus/src/db/datastore/sled.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nexus/src/db/datastore/sled.rs b/nexus/src/db/datastore/sled.rs index 3f97bfcc540..30575fdb472 100644 --- a/nexus/src/db/datastore/sled.rs +++ b/nexus/src/db/datastore/sled.rs @@ -34,6 +34,8 @@ impl DataStore { dsl::time_modified.eq(Utc::now()), dsl::ip.eq(sled.ip), dsl::port.eq(sled.port), + dsl::rack_id.eq(sled.rack_id), + dsl::is_scrimlet.eq(sled.is_scrimlet), )) .returning(Sled::as_returning()) .get_result_async(self.pool())