Project

General

Profile

Actions

Bug #16311

closed

A generic method is declared as invalid for classic/linux agent if it contais curly braces with whitspace in it

Added by Vincent MEMBRÉ over 4 years ago. Updated about 1 year ago.

Status:
Rejected
Priority:
N/A
Category:
Web - Technique editor
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

When you create a generic method, it will be declared as not valid for cfengine agent if it contains a coupleof curly braces with only whitespaces or nothing in between.

This syntax is used to declared empty lists in CFEngine and can also appear in strings (obviously).

The method will be displayed as non compatible with classic agent in the technique editor, will be applied correclty by a directly, But reporting will be wrong, you will get an n/a report stating that the method is not valid for classic agent, breaking reporting in Rudder (two reports made, one ok, and one n/a

As a workaround empty list can be declared using the following syntax

"my_slist" slist => splitstring("","",0);
Actions

Also available in: Atom PDF