Skip to content

Commit

Permalink
Merge pull request #339 from slomo/patch-2
Browse files Browse the repository at this point in the history
sort keys in service configuration
  • Loading branch information
brianshumate authored Nov 14, 2019
2 parents d128086 + 1204a32 commit c764482
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions templates/service.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@
"kind": "{{ item.kind }}",
{% endif -%}
{% if item.proxy is defined -%}
"proxy": {{ item.proxy | to_json }},
"proxy": {{ item.proxy | to_json(sort_keys=True) }},
{% endif -%}
{% if item.meta is defined -%}
"meta": {{ item.meta | to_json }},
"meta": {{ item.meta | to_json(sort_keys=True) }},
{% endif -%}
{% if item.checks is defined -%}
"checks": {{ item.checks | to_json }},
"checks": {{ item.checks | to_json(sort_keys=True) }},
{% endif -%}
{% if item.connect is defined -%}
"connect": {{ item.connect | to_json }},
"connect": {{ item.connect | to_json(sort_keys=True) }},
{% endif -%}
{% if item.weights is defined -%}
"weights": {{ item.weights | to_json }},
"weights": {{ item.weights | to_json(sort_keys=True) }},
{% endif -%}
{% if item.token is defined -%}
"token": {{ item.token | to_json }},
{% endif -%}
"tags": {% if item.tags is defined -%}{{ item.tags|to_json }}{% else %}[]{% endif -%}
"tags": {{ item.tags|default([])|to_json(sort_keys=True) }}
}
}

0 comments on commit c764482

Please sign in to comment.