@ibm-cloud/cd-tools 1.15.6 → 1.15.7
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.
- package/cmd/utils/terraform.js +2 -2
- package/package.json +1 -1
package/cmd/utils/terraform.js
CHANGED
|
@@ -268,7 +268,7 @@ async function setupTerraformFiles(config) {
|
|
|
268
268
|
for (const [k, v] of Object.entries(newTfFileObj['resource']['ibm_cd_tekton_pipeline_trigger'])) {
|
|
269
269
|
try {
|
|
270
270
|
const thisUrl = v['source'][0]['properties'][0]['url'];
|
|
271
|
-
if (!v['depends_on'] && thisUrl) {
|
|
271
|
+
if (!v['depends_on'] && thisUrl && repoToTfName[thisUrl]) {
|
|
272
272
|
newTfFileObj['resource']['ibm_cd_tekton_pipeline_trigger'][k]['depends_on'] = [`ibm_cd_toolchain_tool_githubconsolidated.${repoToTfName[thisUrl]}`]
|
|
273
273
|
}
|
|
274
274
|
}
|
|
@@ -302,7 +302,7 @@ async function setupTerraformFiles(config) {
|
|
|
302
302
|
for (const [k, v] of Object.entries(newTfFileObj['resource']['ibm_cd_tekton_pipeline_definition'])) {
|
|
303
303
|
try {
|
|
304
304
|
const thisUrl = v['source'][0]['properties'][0]['url'];
|
|
305
|
-
if (!v['depends_on'] && thisUrl) {
|
|
305
|
+
if (!v['depends_on'] && thisUrl && repoToTfName[thisUrl]) {
|
|
306
306
|
newTfFileObj['resource']['ibm_cd_tekton_pipeline_definition'][k]['depends_on'] = [`ibm_cd_toolchain_tool_githubconsolidated.${repoToTfName[thisUrl]}`]
|
|
307
307
|
}
|
|
308
308
|
}
|