Skip to content

Commit

Permalink
diff shall disregard differences in ssp related to xml namespacess
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Sep 18, 2020
1 parent 75ea0ce commit cf134ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/oscal_diff/oscal_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,14 @@ func hideFormatRelatedDifferences(a *oscal.OSCAL, b *oscal.OSCAL) {
b.Catalog.XMLName = a.Catalog.XMLName
}
}
case constants.SSPDocument:
if a.SystemSecurityPlan.XMLName.Space != b.SystemSecurityPlan.XMLName.Space {
if a.SystemSecurityPlan.XMLName.Space == "" {
a.SystemSecurityPlan.XMLName = b.SystemSecurityPlan.XMLName
}
if b.SystemSecurityPlan.XMLName.Space == "" {
b.SystemSecurityPlan.XMLName = a.SystemSecurityPlan.XMLName
}
}
}
}

0 comments on commit cf134ce

Please sign in to comment.