@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/
|
|
299
|
+
fs.writeFileSync(`${dir}/generated/resources.tf`, generatedFileNew);
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
// remove draft
|
package/cmd/utils/validate.js
CHANGED
|
@@ -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
|
|
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`);
|