From d84f0ee4affaf3f0d4a51146f535a2b1665ecd15 Mon Sep 17 00:00:00 2001 From: Olivier Hoareau Date: Fri, 20 Sep 2024 08:59:23 +0200 Subject: [PATCH] feat: add rsuffix_explicit --- src/generators/v2.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generators/v2.ts b/src/generators/v2.ts index e47daf9..a0a83ad 100644 --- a/src/generators/v2.ts +++ b/src/generators/v2.ts @@ -36,6 +36,7 @@ export default async ( extra_providers: [], psuffix: '', rsuffix: '', + rsuffix_explicit: '', }; vars = {...vars, ...defaultVars}; return [ @@ -91,6 +92,7 @@ export default async ( is_default_region: isDefault, psuffix: isDefault ? '' : `.${rCode}`, rsuffix: isDefault ? '' : `-${rCode}`, + rsuffix_explicit: `-${rCode}`, ...r, ...(vars?.id ? {id: vars.id} : {}), }, @@ -118,6 +120,7 @@ export default async ( is_default_region: isMain, psuffix: isMain ? '' : `.${rCode}`, rsuffix: isMain ? '' : `-${rCode}`, + rsuffix_explicit: `-${rCode}`, ...r, ...(vars?.id ? {id: vars.id} : {}), }, @@ -144,6 +147,7 @@ export default async ( is_default_region: isSub, psuffix: isSub ? '' : `.${rCode}`, rsuffix: isSub ? '' : `-${rCode}`, + rsuffix_explicit: `-${rCode}`, ...r, ...(vars?.id ? {id: vars.id} : {}), },