Open sirkubax opened 7 years ago
This fixes the problem on the 'template level' :)
<#if (executionData.argstring)?has_content>
,{
"title": "Options",
- "value": "${executionData.argstring}",
+ "value": "${executionData.argstring?js_string?replace(":", "A")}",
"short": false
}
</#if>
Result:
Options: app: promo system_version_file: stg_default version_in_system_version_file: version_unknown diff: --diff dont_enable_after_deploy: false dry_run: disable_nagios_probe: True version_override: 0.9.926 verbose: -v
(do not ask me, why the replacment does not contain "A")
At Slack channel:
Options
-app promo -diff --diff -disable_nagios_probe True -dont_enable_after_deploy false -dry_run " " -system_version_file stg_default -verbose -v -version_in_system_version_file version_unknown -version_override 0.9.926
It seems, that when in the
templates/slack-message.ftl
the value ${executionData.argstring} is a { 'key': value, 'key2': value, "some_key_without_value": }a dry_run: is not empty, it contains ' ' whitespace :) yet it should be escaped...
The slack reject the output. Is this a Slack issue, or a rundeck-slack plugin escaping issue?