diff options
author | elijah <elijah@riseup.net> | 2013-07-04 22:36:56 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-07-04 22:36:56 -0700 |
commit | 297f14f0656f80c906cc8bed0faaf5c73b7185c1 (patch) | |
tree | 6e7ca4701ff988999ed0fa180d79330237349b73 /provider_base/files | |
parent | 7cbc4d41e35fec9dc0192cc3caf11803b562c06d (diff) |
bugfix - properly generate provider.json file.
Diffstat (limited to 'provider_base/files')
-rw-r--r-- | provider_base/files/service-definitions/provider.json.erb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/provider_base/files/service-definitions/provider.json.erb b/provider_base/files/service-definitions/provider.json.erb index 8dbf7365..5d4c63a0 100644 --- a/provider_base/files/service-definitions/provider.json.erb +++ b/provider_base/files/service-definitions/provider.json.erb @@ -1,12 +1,9 @@ <%= - hsh = {} - # grab some fields from provider.json hsh = global.provider.pick( :languages, :description, :name, :enrollment_policy, :default_language, :service ) - hsh['domain'] = domain.full_suffix # advertise services that are 'user services' and for which there are actually nodes @@ -20,5 +17,5 @@ hsh['ca_cert_uri'] = 'https://' + domain.full_suffix + '/ca.crt' hsh['ca_cert_fingerprint'] = fingerprint(:ca_cert) - JSON.sorted_generate hsh + hsh.dump_json %>
\ No newline at end of file |