Project

General

Profile

Actions

Bug #11210

closed

NCF Variable expansion on node properties does not work

Added by Ferenc Ulrich over 6 years ago. Updated over 3 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Techniques
Target version:
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


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #11600: Result class containing {} are not properly canonizedReleasedBenoît PECCATTEActions
Actions

Also available in: Atom PDF