From b353abc8a7b9e05e736e46d0fec811e262c581e7 Mon Sep 17 00:00:00 2001 From: abhishek kumar tiwari Date: Mon, 7 Oct 2024 17:50:09 +0000 Subject: [PATCH] fix: Version config path should look for versions.tf in current blueprint dirctory (#2637) Co-authored-by: Bharath KKB --- cli/bpmetadata/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/bpmetadata/cmd.go b/cli/bpmetadata/cmd.go index ee2add8a6b0..1a4958d9690 100644 --- a/cli/bpmetadata/cmd.go +++ b/cli/bpmetadata/cmd.go @@ -259,7 +259,7 @@ func CreateBlueprintMetadata(bpPath string, bpMetadataObj *BlueprintMetadata) (* // get blueprint requirements rolesCfgPath := path.Join(repoDetails.Source.BlueprintRootPath, tfRolesFileName) svcsCfgPath := path.Join(repoDetails.Source.BlueprintRootPath, tfServicesFileName) - versionsCfgPath := path.Join(repoDetails.Source.BlueprintRootPath, tfVersionsFileName) + versionsCfgPath := path.Join(bpPath, tfVersionsFileName) requirements, err := getBlueprintRequirements(rolesCfgPath, svcsCfgPath, versionsCfgPath) if err != nil { Log.Info("skipping blueprint requirements since roles and/or services configurations were not found as per https://tinyurl.com/tf-iam and https://tinyurl.com/tf-services")