summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--provider_base/services/static.rb6
-rw-r--r--tests/platform-ci/.ruby-version1
2 files changed, 5 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
diff --git a/tests/platform-ci/.ruby-version b/tests/platform-ci/.ruby-version
new file mode 100644
index 00000000..8dbb0f26
--- /dev/null
+++ b/tests/platform-ci/.ruby-version
@@ -0,0 +1 @@
+2.1.10