Bug #11613
Updated by Janos Mattyasovszky about 7 years ago
If you have a generic_variable_definition *value* that consists of multiple lines, due to how the .st file is built up, it inserts spaces as of the second line, indenting the content. <pre> &GENERIC_VARIABLE_NAME, GENERIC_VARIABLE_CONTENT:{name, content |"&name&" string => "&content&", </pre> https://github.com/Normation/rudder-techniques/blob/91dc9d9e48d300afd76edcf37a961fa7069a3d5a/techniques/systemSettings/misc/genericVariableDefinition/2.0/genericVariableDefinition.st#L24 https://github.com/Normation/rudder-techniques/blob/91dc9d9e48d300afd76edcf37a961fa7069a3d5a/techniques/systemSettings/misc/genericCommandVariableDefinition/3.0/genericCommandVariableDefinition.st#L32 Resulting generated code example: <pre> "var_authorized_key_final" string => "${generic_variable_definition.auth_key_1} ${generic_variable_definition.auth_key_2}", </pre> That results in a content, when written to a file: <pre> ssh-rsa AAAAB3NzaC1yc2EAAA ssh-rsa AAAAB3NzaC1yc2 </pre>