feat(HMS-3341): pass module_hotfixes flag to compose request

This commit is contained in:
Ondrej Ezr 2024-01-20 23:49:25 +01:00 committed by Lucas Garfield
parent a04835c5a2
commit 627f953dfc
4 changed files with 77 additions and 0 deletions

View file

@ -114,6 +114,10 @@ const convertSchemaToIBPayloadRepo = (repo) => {
rhsm: false,
check_gpg: false,
};
// only include the flag if enabled
if (repo.module_hotfixes) {
imageBuilderRepo.module_hotfixes = repo.module_hotfixes;
}
if (repo.gpg_key) {
imageBuilderRepo.gpgkey = repo.gpg_key;
imageBuilderRepo.check_gpg = true;
@ -131,6 +135,10 @@ const convertSchemaToIBCustomRepo = (repo) => {
baseurl: [repo.url],
check_gpg: false,
};
// only include the flag if enabled
if (repo.module_hotfixes) {
imageBuilderRepo.module_hotfixes = repo.module_hotfixes;
}
if (repo.gpg_key) {
imageBuilderRepo.gpgkey = [repo.gpg_key];
imageBuilderRepo.check_gpg = true;