Skip to content

Commit

Permalink
feat: add rsuffix_explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
ohoareau committed Sep 20, 2024
1 parent 18044d6 commit d84f0ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/generators/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default async (
extra_providers: [],
psuffix: '',
rsuffix: '',
rsuffix_explicit: '',
};
vars = {...vars, ...defaultVars};
return [
Expand Down Expand Up @@ -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} : {}),
},
Expand Down Expand Up @@ -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} : {}),
},
Expand All @@ -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} : {}),
},
Expand Down

0 comments on commit d84f0ee

Please sign in to comment.