cloudapi: support dnf modules
Exposes enabled modules in the api.
This commit is contained in:
parent
d6fe9d85cf
commit
241aae6fd4
4 changed files with 240 additions and 179 deletions
|
|
@ -539,6 +539,15 @@ func ConvertRequestBP(rbp Blueprint) (blueprint.Blueprint, error) {
|
|||
}
|
||||
}
|
||||
|
||||
if rbp.EnabledModules != nil {
|
||||
for _, em := range *rbp.EnabledModules {
|
||||
bp.EnabledModules = append(bp.EnabledModules, blueprint.EnabledModule{
|
||||
Name: em.Name,
|
||||
Stream: em.Stream,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if rbp.Groups != nil {
|
||||
for _, group := range *rbp.Groups {
|
||||
bp.Groups = append(bp.Groups, blueprint.Group{
|
||||
|
|
@ -614,6 +623,15 @@ func (request *ComposeRequest) GetBlueprintFromCustomizations() (blueprint.Bluep
|
|||
}
|
||||
}
|
||||
|
||||
if request.Customizations.EnabledModules != nil {
|
||||
for _, em := range *request.Customizations.EnabledModules {
|
||||
bp.EnabledModules = append(bp.EnabledModules, blueprint.EnabledModule{
|
||||
Name: em.Name,
|
||||
Stream: em.Stream,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if request.Customizations.Containers != nil {
|
||||
for _, c := range *request.Customizations.Containers {
|
||||
bc := blueprint.Container{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue