static - gracefully handle incorrect static site configs
authorelijah <elijah@riseup.net>
Wed, 28 Jun 2017 20:23:02 +0000 (13:23 -0700)
committerelijah <elijah@riseup.net>
Wed, 28 Jun 2017 20:23:02 +0000 (13:23 -0700)
provider_base/services/static.rb

index d020ba2..4c7d2e5 100644 (file)
@@ -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