We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9b6091 commit 3692cf4Copy full SHA for 3692cf4
examples/oc_to_oscal_components.py
@@ -46,7 +46,11 @@ def main(source):
46
cd = component.ComponentDefinition(metadata=md)
47
cd.components = []
48
for o_comp in oc.components:
49
- c = component.Component(title=o_comp.name, description=o_comp.name)
+ if o_comp.key:
50
+ desc = o_comp.key
51
+ else:
52
+ desc = o_comp.name
53
+ c = component.Component(title=o_comp.name, description=desc)
54
c.control_implementations = []
55
56
sorted_controls = sorted(o_comp.satisfies, key=lambda c: c.standard_key)
0 commit comments