1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-11-30 20:50:49 +01:00

fix(cloud): Deduplicate services list of existing instances

Signed-off-by: Louis Chmn <louis@chmn.me>
This commit is contained in:
Louis Chmn 2026-09-14 17:54:12 +02:00
commit 48df38ea25

View file

@ -845,15 +845,16 @@ impl Cloud {
let detach = sources_root.map(Utf8Path::new)? != config.sources_root;
let found_services = labels
let found_services = deduplicate_services(
labels
.get("haze-services")?
.split(',')
.flat_map(|service| {
Service::from_type(&config.preset, service)
.into_iter()
.flatten()
})
.collect();
}),
);
let mut service_ids: Vec<String> = services
.iter()