diff --git a/generator/manipulation.go b/generator/manipulation.go index 693805e6..e9baf2e7 100644 --- a/generator/manipulation.go +++ b/generator/manipulation.go @@ -67,7 +67,7 @@ func ProcessAlterations(alterations []profile.Alter, c *catalog.Catalog) *catalo } // ProcessSetParam processes set-param of a profile -func ProcessSetParam(setParams []profile.Set, c *catalog.Catalog, catalogHelper impl.Catalog) *catalog.Catalog { +func ProcessSetParam(setParams []profile.SetParameter, c *catalog.Catalog, catalogHelper impl.Catalog) *catalog.Catalog { for _, sp := range setParams { ctrlID := catalogHelper.GetControl(sp.ParamId) for i, g := range c.Groups { diff --git a/generator/mapper.go b/generator/mapper.go index 223c223b..d92e4bff 100644 --- a/generator/mapper.go +++ b/generator/mapper.go @@ -50,7 +50,7 @@ func CreateCatalogsFromProfile(profileArg *profile.Profile) ([]*catalog.Catalog, if profileArg.Modify != nil { nc := impl.NISTCatalog{} importedCatalog = ProcessAlterations(alterations, importedCatalog) - importedCatalog = ProcessSetParam(profileArg.Modify.Settings, importedCatalog, &nc) + importedCatalog = ProcessSetParam(profileArg.Modify.ParameterSettings, importedCatalog, &nc) } newCatalog, err := GetMappedCatalogControlsFromImport(importedCatalog, profileImport, &catalogHelper) if err != nil { diff --git a/generator/profile.go b/generator/profile.go index 4c148854..7ad81c9d 100644 --- a/generator/profile.go +++ b/generator/profile.go @@ -26,8 +26,8 @@ func findAlter(p *profile.Profile, call profile.Call) (*profile.Alter, bool, err if p.Modify == nil { p.Modify = &profile.Modify{ - Alterations: []profile.Alter{}, - Settings: []profile.Set{}, + Alterations: []profile.Alter{}, + ParameterSettings: []profile.SetParameter{}, } } for _, alt := range p.Modify.Alterations { @@ -105,8 +105,8 @@ func GetAlters(p *profile.Profile) ([]profile.Alter, error) { found := false if p.Modify == nil { p.Modify = &profile.Modify{ - Alterations: []profile.Alter{}, - Settings: []profile.Set{}, + Alterations: []profile.Alter{}, + ParameterSettings: []profile.SetParameter{}, } } for _, alt := range p.Modify.Alterations {