1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-11-30 12:40:48 +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 detach = sources_root.map(Utf8Path::new)? != config.sources_root;
let found_services = labels let found_services = deduplicate_services(
.get("haze-services")? labels
.split(',') .get("haze-services")?
.flat_map(|service| { .split(',')
Service::from_type(&config.preset, service) .flat_map(|service| {
.into_iter() Service::from_type(&config.preset, service)
.flatten() .into_iter()
}) .flatten()
.collect(); }),
);
let mut service_ids: Vec<String> = services let mut service_ids: Vec<String> = services
.iter() .iter()