You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But maybe you would have better solution for this.
Issue Type
Bug Report
Ansible, Collection, Controller details
Devel affected.
OS / ENVIRONMENT
N/A
Desired Behavior
Export objects with proper escaped special characters
Actual Behavior
I've ran an import script and include_vars module failed with this error:
"We were unable to read either as JSON nor YAML, these are the errors we got from each:JSON: Expecting value: line 1 column 1 (char 0)Syntax Error while loading YAML. found unknown escape characterThe error appears to be in '/repo_dir/controller_objects/control_vars/controller_job_templates/job_scheduled.yaml': line 4, column 70, but maybe elsewhere in the file depending on the exact syntax problem.The offending line appears to be: name: \"job_scheduled\" description: \"XXX \\\\10.10.10.128\\something$\\whatever\\yyy\\zzz\"\n }
STEPS TO REPRODUCE
Create job template with description: XXX report \\10.10.10.128\something$\whatever\yyy\zzz.
Export Job templates with filetree_create.
Try to Include_vars with exported files.
Edit: double quotes present in description can break things as well.
The text was updated successfully, but these errors were encountered:
Summary
Recently, I tried to restore job templates in our environment, but an error is showing up due to some special characters in the description.
I've managed to fix it manually in the files in two ways:
original yaml fragment:
The first solution:
The second solution:
But maybe you would have better solution for this.
Issue Type
Ansible, Collection, Controller details
Devel affected.
OS / ENVIRONMENT
N/A
Desired Behavior
Export objects with proper escaped special characters
Actual Behavior
I've ran an import script and include_vars module failed with this error:
STEPS TO REPRODUCE
XXX report \\10.10.10.128\something$\whatever\yyy\zzz
.Edit: double quotes present in description can break things as well.
The text was updated successfully, but these errors were encountered: