Skip to content

Commit ba7d284

Browse files
committed
fixup! feat(generate): generate terraform imports
1 parent e25823f commit ba7d284

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/commands/generate-terraform.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function generateTerraform (params) {
1818
if (!orga) {
1919
throw new Error(`Could not find organisation with ID: ${ownerId}`);
2020
}
21-
//console.log(JSON.stringify(orga.applications, null, 2)); process.exit(0);
21+
// console.log(JSON.stringify(orga.applications, null, 2)); process.exit(0);
2222

2323
let applications = orga.applications;
2424
let addons = orga.addons;
@@ -82,16 +82,7 @@ export async function generateTerraform (params) {
8282
.concat(addonToImport).map((app) => {
8383
return {
8484
...app,
85-
name : slugify(app.name, { lower: true, strict: true, trim: true }),
86-
/*name: app.name
87-
.replaceAll('.', '_')
88-
.replaceAll(' ', '_')
89-
.replaceAll('(', '')
90-
.replaceAll(')', '')
91-
.replaceAll('[', '')
92-
.replaceAll(']', '')
93-
.replaceAll('/', '_')
94-
.replaceAll(';', ''),
85+
name: slugify(app.name, { lower: true, strict: true, trim: true }),
9586
};
9687
})
9788
.filter(({ name }) => {

0 commit comments

Comments
 (0)