@ibm-cloud/cd-tools 1.15.13 → 1.15.15

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
+ 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibm-cloud/cd-tools",
3
- "version": "1.15.13",
3
+ "version": "1.15.15",
4
4
  "description": "Tools and utilities for the IBM Cloud Continuous Delivery service and resources",
5
5
  "repository": {
6
6
  "type": "git",