summaryrefslogtreecommitdiff
path: root/provider_base/files/service-definitions
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-05-05 15:24:09 -0700
committerelijah <elijah@riseup.net>2015-05-05 15:24:09 -0700
commit55f1d27098365c772c23526c111fd9b20f34e645 (patch)
treeeb9ae2abbce05a9de40c91ff14fcaf4d496dbba4 /provider_base/files/service-definitions
parent81e4dde40f8ad483df0c6ba87da1a3ba480eb7f4 (diff)
take advantage of improved environment binding in leap_cli (requires v 1.7.1)
Diffstat (limited to 'provider_base/files/service-definitions')
-rw-r--r--provider_base/files/service-definitions/provider.json.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/provider_base/files/service-definitions/provider.json.erb b/provider_base/files/service-definitions/provider.json.erb
index 2d0a5886..be8ae484 100644
--- a/provider_base/files/service-definitions/provider.json.erb
+++ b/provider_base/files/service-definitions/provider.json.erb
@@ -7,7 +7,7 @@
hsh['domain'] = domain.full_suffix
# advertise services that are 'user services' and for which there are actually nodes
- hsh['services'] ||= global.env(environment).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