Project

General

Profile

Actions

Bug #23085

open

rudder-compliance python script does not support techniques with blocks when some of the methods inside report an error

Added by Félix DALLIDET 9 months ago. Updated 9 months ago.

Status:
Pending release
Priority:
N/A
Category:
Scripts
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

The script fails with the following:

Traceback (most recent call last):
  File "./rudder-compliance", line 301, in <module>
    rules_compliance(compliance_in, args['rules'], csv_file_string)
  File "./rudder-compliance", line 213, in rules_compliance
    if get_non_compliance_rule(rule_compliance, non_compliances):
  File "./rudder-compliance", line 66, in get_non_compliance_rule
    extract_non_compliance_by_directive(rule_name, directive_compliance, non_compliances)
  File "./rudder-compliance", line 87, in extract_non_compliance_by_directive
    for nodes in components_compliance["nodes"]:
KeyError: 'nodes'

To reproduce import the attached technique.


Files


Subtasks 1 (1 open0 closed)

Bug #23091: Typo in parent ticketPending releaseFélix DALLIDETActions
Actions #1

Updated by Félix DALLIDET 9 months ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET
Actions #2

Updated by Félix DALLIDET 9 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder-tools/pull/767
Actions #3

Updated by Félix DALLIDET 9 months ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by Nicolas CHARLES 9 months ago

  • Subtask #23091 added
Actions

Also available in: Atom PDF