Closed lswith closed 2 years ago
The "tf/dashboards/overview-.tf" file is constantly changing, each time I run "slogen . --apply --clean".
I believe this is because the map is unordered and the rows are being pulled out arbitrarily: https://github.com/SumoLogic-Labs/slogen/blob/main/libs/overview.go#L193
This means that my terraform code changes on each run, rather than being hermetic.
This is a low priority, but it would be nice to have these rows sorted.
Agreed, all the need loops in templates should be sorted by the resource name. should be an easy change.
fixed in https://github.com/SumoLogic-Labs/slogen/pull/51/commits/9cc3f5932c277d26bbd5a5236263d4a638c2049d
The "tf/dashboards/overview-.tf" file is constantly changing, each time I run "slogen . --apply --clean".
I believe this is because the map is unordered and the rows are being pulled out arbitrarily: https://github.com/SumoLogic-Labs/slogen/blob/main/libs/overview.go#L193
This means that my terraform code changes on each run, rather than being hermetic.
This is a low priority, but it would be nice to have these rows sorted.