Bug #2860
closedpriority does not appear to have an effect for directives derived from multi-instance techniques
Description
This is on Rudder 2.4 beta3
According to the tooltip of Priority field in directive settings, for multi-instance techniques, a higher priority (lower number) means a directive will be applied first. This does not appear to work.
I've configured a couple of directives based on 'Enforce a file content', most of them are set to default priority 5, but one of them is set to priority 2, and another to priority 8. However in /var/rudder/share/{NODE_UUID}/rules/cfengine-community/checkGenericFileContent/3.0/checkGenericFileContent.cf
file generated for the node, I can see that a directive with priority 5 is first (i.e. index=1), the directive with priority 8 is second, then there are a couple of directives with priority 5 and finally the one with priority 2 is last.
I've also tried deleting and re-creating the directive with priority 8, but it still ended up second in the generated file.
Let me know if I'm doing something wrong, and what I can do to help debug this.