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(
labels
.get("haze-services")? .get("haze-services")?
.split(',') .split(',')
.flat_map(|service| { .flat_map(|service| {
Service::from_type(&config.preset, service) Service::from_type(&config.preset, service)
.into_iter() .into_iter()
.flatten() .flatten()
}) }),
.collect(); );
let mut service_ids: Vec<String> = services let mut service_ids: Vec<String> = services
.iter() .iter()