Architecture #7580
closedRemove unused tracking variable in distributePolicy
Description
In distributePolicy/1.0 -> metadata.xml, we have:
<TRACKINGVARIABLE> <SAMESIZEAS>CMDBENDPOINT</SAMESIZEAS> </TRACKINGVARIABLE>
Which is VERY strange.
It does not seems to have the least impact on generated code, so at best, it is dead code, at worst a bug.
We should remove it 3.2, but let it in previous release in the case it is somehow used.
Updated by Janos Mattyasovszky about 9 years ago
yeah I already wanted to ask about that...
the technique foswiki-entry http://www.rudder-project.org/foswiki/Development/TechniqueXML says Optional; defines the cardinality of this variable based on the cardinality of the VariableName, but I don't know what this is supposed to mean :-)
Updated by François ARMAND about 9 years ago
@Janos Matya: this a complexe feature, a reminiscence from the past, that should never have been done like that. The need is to be able to link to multivalued variable so that you can iter on there elements together, even when the arity of the two don't matches and so you need to do some flattening on one (typical example: I have a list of elements with sub elements, and I need to access the parent when processing a children).
Basically, what you need to know is: don't do that. Use templates. Or CFEngine arrays.
Updated by François ARMAND about 9 years ago
- Status changed from New to In progress
- Assignee changed from Nicolas CHARLES to François ARMAND
Updated by François ARMAND about 9 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/816
Updated by François ARMAND about 9 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-techniques|b79a1ddb3bd7d5ef9878d15d35d0a6b0f1eed605.
Updated by Nicolas CHARLES about 9 years ago
Applied in changeset rudder-techniques|53c7f79df2501a1ea319637b7cda8ff19d80437b.
Updated by Alexis Mousset almost 9 years ago
- Subject changed from remove unused tracking variable in distributePolicy to Remove unused tracking variable in distributePolicy
Updated by Benoît PECCATTE almost 9 years ago
- Status changed from Pending release to Released
Updated by Benoît PECCATTE almost 9 years ago
This bug has been fixed in Rudder 3.2.0~rc2 which was released today.