WizardV2: pass module_hotfixes to the request

This commit is contained in:
Ondrej Ezr 2024-04-26 11:32:31 +02:00 committed by Lucas Garfield
parent 88e67b3e4c
commit 7246cfbd16
5 changed files with 61 additions and 5 deletions

View file

@ -145,6 +145,10 @@ export const convertSchemaToIBCustomRepo = (
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;
@ -163,6 +167,10 @@ export const convertSchemaToIBPayloadRepo = (
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;