Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
Fix build failures after latest refresh of the OSCAL repository
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Feb 5, 2020
1 parent abd1a73 commit 0ec5f78
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion generator/manipulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion generator/mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions generator/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 0ec5f78

Please sign in to comment.