Skip to content

Populate valued tag, not just last occurance #28

@em-c-rod

Description

@em-c-rod

If a tag appears twice at the top level of a control, the last value will be printed out.

For example:
If the original control has two satisfies tags like shown below:

  tag 'satisfies': ['SRG-OS-000257-GPOS-00098', 'SRG-OS-000278-GPOS-00108']
  tag 'gid': 'V-204392'
  tag 'rid': 'SV-204392r646841_rule'
  tag 'stig_id': 'RHEL-07-010010'
  tag 'fix_id': 'F-36302r646840_fix'
  tag 'cci': ['CCI-001494', 'CCI-001496', 'CCI-002165', 'CCI-002235']
  tag nist: ['AU-9', 'AU-9 (3)', 'AC-3 (4)', 'AC-6 (10)']
  tag subsystems: ['permissions', 'package', 'rpm']
  tag 'host', 'container', 'satisfies'

The new control will result in:
tag satisfies: nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions