summaryrefslogtreecommitdiff
path: root/provider_base/files/service-definitions/provider.json.erb
diff options
context:
space:
mode:
Diffstat (limited to 'provider_base/files/service-definitions/provider.json.erb')
-rw-r--r--provider_base/files/service-definitions/provider.json.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/provider_base/files/service-definitions/provider.json.erb b/provider_base/files/service-definitions/provider.json.erb
index 97454f81..3e055e9a 100644
--- a/provider_base/files/service-definitions/provider.json.erb
+++ b/provider_base/files/service-definitions/provider.json.erb
@@ -1,13 +1,13 @@
<%=
# grab some fields from provider.json
hsh = provider.pick(
- :languages, :description, :name,
+ :languages, :description, :name, :services,
:enrollment_policy, :default_language, :service
)
hsh['domain'] = domain.full_suffix
# advertise services that are 'user services' and for which there are actually nodes
- hsh['services'] = global.services[:service_type => :user_service].field(:name).select do |service|
+ hsh['services'] ||= global.services[:service_type => :user_service].field(:name).select do |service|
nodes_like_me[:services => service].any?
end