From 573b434d2fb608978438349e16ed2c245fc046d3 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@keylocation.sg>
Date: Fri, 18 Aug 2017 19:24:27 +0200
Subject: [PATCH] fix: arrays of objects should be massaged (#696)

---
 lib/config/massage.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lib/config/massage.js b/lib/config/massage.js
index 780fbcce2d..80391a8cd5 100644
--- a/lib/config/massage.js
+++ b/lib/config/massage.js
@@ -20,6 +20,15 @@ function massageConfig(config) {
       massagedConfig[key] = [val];
     } else if (isObject(val)) {
       massagedConfig[key] = massageConfig(val);
+    } else if (Array.isArray(val)) {
+      massagedConfig[key] = [];
+      val.forEach(item => {
+        if (isObject(item)) {
+          massagedConfig[key].push(massageConfig(item));
+        } else {
+          massagedConfig[key].push(item);
+        }
+      });
     }
   }
   return massagedConfig;
-- 
GitLab