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
Describe the bug
When running a stack diff, the printStackDiff function is doing a JSON.stringify of newTemplate which is the template path, not the contents. Leading to diffs like this:
Stack: AWSAccelerator-NetworkAssociationsGwlbStack-<account>-<region>
Other Changes
[+] Unknown 270: l
[+] Unknown 271: a
[+] Unknown 272: t
[+] Unknown 273: e
[+] Unknown 274: .
[+] Unknown 275: j
[+] Unknown 276: s
[+] Unknown 277: o
[+] Unknown 278: n
[~] Unknown 266: j to t
[~] Unknown 267: s to e
[~] Unknown 268: o to m
[~] Unknown 269: n to
instead it should do JSON.stringify(readTemplate(newTemplate)) to stringify the file contents and get the correct mangled version.
To Reproduce
Synth and diff a stage having differenceCount bigger than the number of letters of the .json path length.
For example, add a new region and a VPC, then
Describe the bug
When running a stack diff, the printStackDiff function is doing a
JSON.stringify
ofnewTemplate
which is the template path, not the contents. Leading to diffs like this:instead it should do
JSON.stringify(readTemplate(newTemplate))
to stringify the file contents and get the correct mangled version.To Reproduce
Synth and diff a stage having
differenceCount
bigger than the number of letters of the .json path length.For example, add a new region and a VPC, then
Expected behavior
Please complete the following information about the solution:
The text was updated successfully, but these errors were encountered: