Skip to content

Commit 95da029

Browse files
committed
fix: dont include installing servers in service discovery (#2569)
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
1 parent b6524d9 commit 95da029

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/api/provision/src/route/datacenters.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ pub async fn servers(
7575
servers: servers_res
7676
.servers
7777
.into_iter()
78+
// Filter out installing servers
79+
.filter(|server| server.install_complete_ts.is_some())
7880
.map(ApiInto::api_into)
7981
.collect(),
8082
})

0 commit comments

Comments
 (0)