Actions
Bug #22058
openIterator reports are interdependent
Status:
Pending technical review
Priority:
N/A
Assignee:
Category:
Generic methods
Target version:
Pull Request:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Priority:
0
Regression:
No
Description
When using an iterator the report status from a value is inherited to the next one and only overridden if the next report is worst.
Meaning that when the first item produces an error, the whole iterator reporting will be in error for each individual values, even if they succeeded.
Files
Updated by Félix DALLIDET 3 months ago
- File unix_tools.json unix_tools.json added
Tested in 7.2.2-nightly. To reproduce, import the exported technique, define a property like such on your node:
{ "apt": [ "vim", "sed", "grep", "curl" ] }
Use it in the directive param with "${node.properties[<name>][apt]}" and run your agent.
Now, add an element in the array that does not match with an existing package, like "lkjgkjhgkjhgkjh". Try to place it first, then in the middle or at the end and observe how
the reporting status is propagated to values in the array.
Updated by Vincent MEMBRÉ 3 months ago
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ 3 months ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/4562
Updated by Vincent MEMBRÉ 2 months ago
- Target version changed from 7.2.2 to 7.2.3
Updated by Vincent MEMBRÉ about 2 months ago
- Target version changed from 7.2.3 to 7.3.0~alpha1
Actions