Actions
Bug #11210
closedNCF Variable expansion on node properties does not work
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
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
Actions