summaryrefslogtreecommitdiff
path: root/provider_base/services
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2017-06-28 13:23:02 -0700
committerelijah <elijah@riseup.net>2017-06-28 13:23:02 -0700
commitde892c3821b2053f23ca6a91bf097b05a150ff41 (patch)
treed859a4e01558554366114f240f147a79fc35dc21 /provider_base/services
parent98b6713afff0eec77fdbfe5d1a079607e6ed5b2c (diff)
static - gracefully handle incorrect static site configs
Diffstat (limited to 'provider_base/services')
-rw-r--r--provider_base/services/static.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/provider_base/services/static.rb b/provider_base/services/static.rb
index d020ba26..4c7d2e59 100644
--- a/provider_base/services/static.rb
+++ b/provider_base/services/static.rb
@@ -1,2 +1,4 @@
-self['dns']['aliases'] += self.static.domains.keys
-self['dns']['aliases'].uniq!
+if self['static'] && self['static']['domains']
+ self['dns']['aliases'] += self['static']['domains'].keys
+ self['dns']['aliases'].uniq!
+end \ No newline at end of file