akamai / cli-property-manager

Use this Property Manager CLI to automate Akamai property changes and deployments across many environments.
Apache License 2.0
29 stars 22 forks source link

Generated pipeline is not easy to diff. #14

Open ghost opened 5 years ago

ghost commented 5 years ago

I have two roughly similar properties (one stage and one prod) that I want to merge in a single pipeline. I created a new pipeline for each property and noticed from my diff that the JSON keys with the same values were often on different lines. e.g. :

"options": {
                "behavior": "MAX_AGE",
                "ttl": "1d",
                "mustRevalidate": false
            }

vs.

            "options": {
                "behavior": "MAX_AGE",
                "mustRevalidate": false,
                "ttl": "1d"
            }

Perhaps the lines could be sorted before the files are written to disk?

humanshield314 commented 5 years ago

Thanks for bringing this to our attention.

This is an interesting problem! We will look into a way to manage this!