From 2ac1bd2ef5a6bc15f2f42cb9107b247a85cdf5f4 Mon Sep 17 00:00:00 2001 From: Stanislav Popov Date: Thu, 16 Aug 2018 16:34:17 +0500 Subject: [PATCH] feat(list): add engine from ansible if not detected (for services) --- pages/index.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/index.vue b/pages/index.vue index bca8393..45996cd 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -86,6 +86,12 @@ export default { return this.sites.map(site => { site.prod = site.prod ? 1 : 0; site.id = site.domain; + if ( + site.engine != 'default' && + (!site.site_info || (site.site_info && !site.site_info.engine)) + ) { + site.site_info.engine = site.engine; + } return site; }); /* const data = this.sites.map(site => {