From 97c7ad179e80b11e8c0687c0a528f8a9b7166b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Luka=C5=A1=C3=ADk?= Date: Wed, 5 Feb 2020 13:54:33 +0100 Subject: [PATCH] Fix build failures after latest refresh of the OSCAL repository --- generator/manipulation.go | 2 +- generator/mapper.go | 2 +- generator/profile.go | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) 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 {