@@ -150,10 +150,17 @@ export class ProfileManager {
150
150
const dotItems = dot . dot ( items )
151
151
152
152
for ( const key in dotItems ) {
153
+ let itemKey = key
154
+
155
+ // if it is an array key like extraEnv[0].JAVA_OPTS, convert it into dot separated key as extraEnv.0.JAVA_OPTS
156
+ if ( key . indexOf ( '[' ) !== - 1 ) {
157
+ itemKey = key . replace ( '[' , '.' ) . replace ( ']' , '' )
158
+ }
159
+
153
160
if ( itemPath ) {
154
- this . _setValue ( `${ itemPath } .${ key } ` , dotItems [ key ] , yamlRoot )
161
+ this . _setValue ( `${ itemPath } .${ itemKey } ` , dotItems [ key ] , yamlRoot )
155
162
} else {
156
- this . _setValue ( key , dotItems [ key ] , yamlRoot )
163
+ this . _setValue ( itemKey , dotItems [ key ] , yamlRoot )
157
164
}
158
165
}
159
166
}
@@ -173,7 +180,6 @@ export class ProfileManager {
173
180
for ( let nodeIndex = 0 ; nodeIndex < nodeIds . length ; nodeIndex ++ ) {
174
181
this . _setValue ( `hedera.nodes.${ nodeIndex } .name` , nodeIds [ nodeIndex ] , yamlRoot )
175
182
this . _setValue ( `hedera.nodes.${ nodeIndex } .accountId` , accountMap . get ( nodeIds [ nodeIndex ] ) , yamlRoot )
176
- this . _setChartItems ( `hedera.nodes.${ nodeIndex } ` , profile . consensus , yamlRoot )
177
183
}
178
184
179
185
const stagingDir = Templates . renderStagingDir (
0 commit comments