Issues icon indicating copy to clipboard operation
Issues copied to clipboard

Structured Configuration Replacement trims colons within YAML files

Open SeanStanway-Octopus opened this issue 1 year ago • 2 comments

Severity

1 customer affected

Version

2023.4.8116, 2024.1.2962

Latest Version

None

What happened?

When running structured configuration replacement against a YAML file some colons are being trimmed at the end of headings, even if no replacements are being done within the file.

It seems like the spacing is changing on the deployed YAML as well, see screenshots for line number changes.

Reproduction

  1. Setup a process to deploy a package that has a YAML file within it. Make sure the YAML has at least one heading with a colon (e.g. setup.test:)
  2. Set "Structure Configuration Replacement" feature on the step and include *.yml (note: no actual variables to replace are necessary)
  3. Run the deployment
  4. Observer inside deployed YAML that the colon from the heading is missing

Error and Stacktrace

No response

More Information

Screenshot examples from testing with a customers YAML

Deployment without replacement check: image

Deployment with replacement check: image

Workaround

Explicitly state the null value, rather than leaving it empty.

SeanStanway-Octopus avatar Dec 04 '23 09:12 SeanStanway-Octopus