File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ class TFAzureResource {
13
13
const self = this . originalJSON ;
14
14
const startTF = `resource "${ this . type } " "${ self . name } " {`
15
15
const endTF = `\n}`
16
-
17
16
const tfObject = [ ] ;
18
17
19
18
delete self . id ;
@@ -50,9 +49,7 @@ class TFAzureResource {
50
49
else tfObject . push ( `${ property } = ` ) ;
51
50
52
51
if ( type == 'array' ) tfObject . push ( `[${ value } ]` ) ;
53
-
54
52
if ( type == 'string' ) tfObject . push ( `"${ value } "` ) ;
55
-
56
53
if ( type == 'number' ) tfObject . push ( `${ value } ` ) ;
57
54
}
58
55
}
@@ -67,11 +64,10 @@ class TFAzureResource {
67
64
const data = this . toTF ( ) ;
68
65
69
66
if ( ! fs . existsSync ( dir ) ) fs . mkdirSync ( dir ) ;
70
-
71
67
72
68
fs . writeFile ( dir + `/${ this . type } .${ this . name } .tf` , data , opts , ( err ) => {
73
- if ( err ) reject ( err )
74
- else resolve ( data )
69
+ if ( err ) reject ( err )
70
+ else resolve ( data )
75
71
} )
76
72
} ) ;
77
73
}
You can’t perform that action at this time.
0 commit comments