Project

General

Profile

Bug #19888 ยป 2021-08-31T15_02_36.728+02_00_test_escaping_for____x.log

Nicolas CHARLES, 2021-08-31 15:09

 

error =>
Inconsistency: An error occurred when compiling technique.rd file into cfengine
code: 1
stderr: An error occurred, could not create content from 'technique.rd':
technique.rd:9:1 near ''
!--> Unable to parse metadata block at technique.rd:4:31: 'expected newline, found an identifier'
An error occurred, could not create content: Command was "/opt/rudder/bin/rudderc" "compile" "-j" "-f" "cf" "-i" "/var/rudder/configuration-repository/techniques/ncf_techniques/test_escaping_for____x/1.0/technique.rd" "--config-file=/opt/rudder/etc/rudderc.conf"

stdout: {
"command": "compile",
"source": "technique.rd",
"time": "1630414956474",
"status": "failure",
"logs": {
"logs": []
},
"data": [],
"errors": [
"technique.rd:9:1 near ''\n!--> Unable to parse metadata block at technique.rd:4:31: 'expected newline, found an identifier'"
]
}
{
"command": "compile",
"source": null,
"time": "1630414956475",
"status": "failure",
"logs": {
"logs": []
},
"data": [],
"errors": [
"Command was \"/opt/rudder/bin/rudderc\" \"compile\" \"-j\" \"-f\" \"cf\" \"-i\" \"/var/rudder/configuration-repository/techniques/ncf_techniques/test_escaping_for____x/1.0/technique.rd\" \"--config-file=/opt/rudder/etc/rudderc.conf\" "
]
}

technique data =>
{
"bundle_name":"test_escaping_for____x",
"version":"1.0",
"category":"ncf_techniques",
"description":"",
"name":"test escaping for \\\\\"x",
"method_calls":[
{
"method_name":"file_lines_present",
"class_context":"",
"component":"File lines present",
"parameters":[
{
"name":"path",
"value":"/tmp/escaping"
},
{
"name":"lines",
"value":"\\\\\"x"
}
],
"id":"9b293fac-54ae-4dd2-a6ce-99fb0490cd52"
}
],
"parameter":[],
"resources":[]
}
    (1-1/1)