@ibm-cloud/cd-tools 1.15.13 → 1.15.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -220,6 +220,15 @@ export async function importTerraform(token, apiKey, region, toolchainId, toolch
|
|
|
220
220
|
// do nothing
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
// if parameters is now empty after removing null values, remove parameters entirely
|
|
224
|
+
try {
|
|
225
|
+
if (Object.keys(v[0]['parameters'][0]).length === 0) {
|
|
226
|
+
delete newTfFileObj['resource'][key][k]['parameters'];
|
|
227
|
+
}
|
|
228
|
+
} catch {
|
|
229
|
+
// do nothing
|
|
230
|
+
}
|
|
231
|
+
|
|
223
232
|
// ignore null values (if it exists) in source properties
|
|
224
233
|
try {
|
|
225
234
|
if (Object.keys(v[0]['source'][0]['properties'][0]).length > 0) {
|