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:
parent
9f1cabf49a
commit
48df38ea25
1 changed files with 10 additions and 9 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue