diff options
author | elijah <elijah@riseup.net> | 2014-06-02 13:01:21 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-06-02 13:01:21 -0700 |
commit | a590f5f3ca1eb21f761c40979b3c87c0f5310018 (patch) | |
tree | 2349acd5bf8b1db61280735d32084a277192a6e2 /provider_base | |
parent | 455422ddd5152679eb8df5554e371dbcf2c28f27 (diff) |
static site: gracefully handle static sites that are not configured.
Diffstat (limited to 'provider_base')
-rw-r--r-- | provider_base/services/static.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/provider_base/services/static.json b/provider_base/services/static.json index c8ca5b1a..d9f52b36 100644 --- a/provider_base/services/static.json +++ b/provider_base/services/static.json @@ -4,7 +4,7 @@ // include a copy of provider.json in case any of the configured domains happens to match provider.domain "bootstrap_files": { "domain": "= provider.domain", - "enabled": "= (self.static.domains||{})[provider.domain] ? true : false", + "enabled": "= !! try{static.domains[provider.domain]}", "provider_json": "=> static.bootstrap_files.enabled ? try{nodes_like_me[:services => 'webapp'].values.first.definition_files['provider']} : nil", "client_version": "= static.bootstrap_files.enabled ? provider.client_version : nil" } |