astro icon indicating copy to clipboard operation
astro copied to clipboard

Normalize policy JSON before diffing

Open mbarbon opened this issue 7 years ago • 0 comments

Currently, Astro uses Indent(), which only changes whitespace: Unmarshal+Marshal is necessary for keys to be sorted.

To avoid confusion, the case when old and new policies are the same after normalization still shows the field as modified with an explanatory message, and there is a command-line switch to disable policy diffing.

mbarbon avatar Sep 28 '18 09:09 mbarbon