mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-30 14:25:22 -05:00
replace repo builder_id with name for toml export
This commit is contained in:
@@ -309,6 +309,13 @@ impl Resolve<ExportResourcesToToml, User> for State {
|
|||||||
.get(&repo.config.server_id)
|
.get(&repo.config.server_id)
|
||||||
.unwrap_or(&String::new()),
|
.unwrap_or(&String::new()),
|
||||||
);
|
);
|
||||||
|
// replace repo builder with name
|
||||||
|
repo.config.builder_id.clone_from(
|
||||||
|
names
|
||||||
|
.builders
|
||||||
|
.get(&repo.config.builder_id)
|
||||||
|
.unwrap_or(&String::new()),
|
||||||
|
);
|
||||||
res.repos.push(convert_resource::<Repo>(repo, &names.tags))
|
res.repos.push(convert_resource::<Repo>(repo, &names.tags))
|
||||||
}
|
}
|
||||||
ResourceTarget::Stack(id) => {
|
ResourceTarget::Stack(id) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user