From de892c3821b2053f23ca6a91bf097b05a150ff41 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 28 Jun 2017 13:23:02 -0700 Subject: static - gracefully handle incorrect static site configs --- provider_base/services/static.rb | 6 ++++-- 1 file 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 -- cgit v1.2.3