mirror of
https://codeberg.org/icewind/haze.git
synced 2026-11-30 04:30:47 +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
19
src/cloud.rs
19
src/cloud.rs
|
|
@ -845,15 +845,16 @@ impl Cloud {
|
|||
|
||||
let detach = sources_root.map(Utf8Path::new)? != config.sources_root;
|
||||
|
||||
let found_services = labels
|
||||
.get("haze-services")?
|
||||
.split(',')
|
||||
.flat_map(|service| {
|
||||
Service::from_type(&config.preset, service)
|
||||
.into_iter()
|
||||
.flatten()
|
||||
})
|
||||
.collect();
|
||||
let found_services = deduplicate_services(
|
||||
labels
|
||||
.get("haze-services")?
|
||||
.split(',')
|
||||
.flat_map(|service| {
|
||||
Service::from_type(&config.preset, service)
|
||||
.into_iter()
|
||||
.flatten()
|
||||
}),
|
||||
);
|
||||
|
||||
let mut service_ids: Vec<String> = services
|
||||
.iter()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue