@ibm-cloud/cd-tools 1.2.0 → 1.2.1

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.
@@ -296,7 +296,7 @@ export async function importTerraform(token, apiKey, region, toolchainId, toolch
296
296
  }
297
297
  } else {
298
298
  const generatedFileNew = jsonToTf(JSON.stringify(newTfFileObj));
299
- fs.writeFileSync(`${dir}/generated/generated.tf`, generatedFileNew);
299
+ fs.writeFileSync(`${dir}/generated/resources.tf`, generatedFileNew);
300
300
  }
301
301
 
302
302
  // remove draft
@@ -372,7 +372,7 @@ async function validateOAuth(token, tools, targetRegion, skipPrompt) {
372
372
 
373
373
  let hasFailedLink = false;
374
374
 
375
- logger.print('Authorize using the following links: \n');
375
+ if (oauthLinks.length > 0) logger.print('Authorize using the following links:\n');
376
376
  oauthLinks.forEach((o) => {
377
377
  if (o.link === 'Could not get OAuth link') hasFailedLink = true;
378
378
  logger.print(`${o.type}: \x1b[36m${o.link}\x1b[0m\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibm-cloud/cd-tools",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Tools and utilities for the IBM Cloud Continuous Delivery service and resources",
5
5
  "repository": {
6
6
  "type": "git",