Skip to content

Commit

Permalink
sort enabled operations in examples (#2778)
Browse files Browse the repository at this point in the history
* sort enabled ops in examples

* nit
  • Loading branch information
amaskara-dd authored Nov 12, 2024
1 parent 893993b commit 070eb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .generator/src/generator/templates/example.j2
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func main() {
{%- endif%}
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
{%- for operation in context._enable_operations %}
{%- for operation in context._enable_operations|sort %}
configuration.SetUnstableOperationEnabled("{{ version }}.{{ operation }}", true)
{%- endfor %}
apiClient := datadog.NewAPIClient(configuration)
Expand Down

0 comments on commit 070eb24

Please sign in to comment.