rundeck-plugins / ansible-plugin

Ansible Integration for Rundeck
MIT License
330 stars 100 forks source link

Key Value Data log filter capturing raw output with formatting #308

Open extremeaclark opened 2 years ago

extremeaclark commented 2 years ago

I am using the script node step in a job to output some data, then using the Key value data log filter to extract the value so it can be used as a variable later in the job. As shown in the screenshot, the filter is extracting the [0m reset format string from the value. rd_key_value_data2

The bash script being executed is simply using echo to print the value, and the log filter is using ^.+?\s*data=\s*(.+)$ as the pattern. Since the output is being detected as CHANGED, it is being formatted with color tags which the log filter is picking up. Is there a way to avoid this issue?