Bug #11210
closedNCF Variable expansion on node properties does not work
Description
Hello,
I would like to run a command using NCF method command execution which has 2 arguments like so:
/usr/local/sbin/command.name.sh ${node.properties[SERVER][0]} ${node.properties[SERVER][1]}
node property SERVER is a json
["server0", "server1"]
the command executes successfully, although i get some error messages on the agent:
error: Broken variable expression, index brackets do not balance, in 'node#properties[SERVER][0_'
error: Broken variable expression, index brackets do not balance, in 'node#properties[SERVER][1_'
Please fix this bug in NCF.
Thanks,
Ferenc
Updated by Benoît PECCATTE over 7 years ago
- Category set to Techniques
- Severity set to Major - prevents use of part of Rudder | no simple workaround
- User visibility set to Operational - other Techniques | Technique editor | Rudder settings
- Priority changed from 0 to 52
Updated by Vincent MEMBRÉ over 7 years ago
Hello Ferenc!
Is it possible to send us the technique file generated ? or at least the extract of the command_execution method call in the technique file ?
The file is located in /var/rudder/configuration-repository/ncf/50_techniques/<bundle_name>/<bundle_name>.cf
Updated by Nicolas CHARLES about 7 years ago
- Related to Bug #11600: Result class containing {} are not properly canonized added
Updated by Nicolas CHARLES over 5 years ago
- Target version set to 5.0.13
- Priority changed from 50 to 0
Retargeting to 5.0
Ferenc, we were not able to reproduice, do you have a more concrete example ?
Updated by Vincent MEMBRÉ about 5 years ago
- Target version changed from 5.0.13 to 5.0.14
Updated by Vincent MEMBRÉ about 5 years ago
- Target version changed from 5.0.14 to 5.0.15
Updated by Vincent MEMBRÉ almost 5 years ago
- Target version changed from 5.0.15 to 5.0.16
Updated by Alexis Mousset almost 5 years ago
- Target version changed from 5.0.16 to 5.0.17
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 5.0.17 to 5.0.18
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 5.0.18 to 5.0.19
Updated by Nicolas CHARLES about 4 years ago
- Status changed from New to Rejected
I'm rejecting this one, we changed both agent and implementation on ncf, so i'm pretty confident it either succeed, or fail in a totally different way