@ibm-cloud/cd-tools 1.15.15 → 1.15.16

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.
@@ -213,22 +213,14 @@ export async function importTerraform(token, apiKey, region, toolchainId, toolch
213
213
  try {
214
214
  if (Object.keys(v[0]['parameters'][0]).length > 0) {
215
215
  for (const [k2, v2] of Object.entries(v[0]['parameters'][0])) {
216
- if (v2 === null) delete newTfFileObj['resource'][key][k]['parameters'][0][k2];
216
+ if (v2 === null && k2 != 'name') delete newTfFileObj['resource'][key][k]['parameters'][0][k2];
217
+ // don't delete name, just leave it as null if it is already null
217
218
  }
218
219
  }
219
220
  } catch {
220
221
  // do nothing
221
222
  }
222
223
 
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
- newTfFileObj['resource'][key][k]['parameters'] = [];
227
- }
228
- } catch {
229
- // do nothing
230
- }
231
-
232
224
  // ignore null values (if it exists) in source properties
233
225
  try {
234
226
  if (Object.keys(v[0]['source'][0]['properties'][0]).length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibm-cloud/cd-tools",
3
- "version": "1.15.15",
3
+ "version": "1.15.16",
4
4
  "description": "Tools and utilities for the IBM Cloud Continuous Delivery service and resources",
5
5
  "repository": {
6
6
  "type": "git",