Skip to content

Commit d3fa5cb

Browse files
Saranya-jenaHarness
authored andcommitted
chore: [ML-1194]: Fixed Issue with harness-context fields not getting passed as argument to devops agent (#53)
* chore: [ML-1194]: update branch Signed-off-by: Saranya-jena <[email protected]> * chore: [ML-1194]: Fixed Issue with harness-context fields not getting passed as argument to devops agent Signed-off-by: Saranya-jena <[email protected]>
1 parent 6dcd958 commit d3fa5cb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pkg/harness/genai.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,16 @@ func AIDevOpsAgentTool(config *config.Config, client *client.GenaiService) (tool
129129

130130
// Override with values from request if provided
131131
if harnessContextRaw != nil {
132-
if accountID, ok := harnessContextRaw["accountID"].(string); ok && accountID != "" {
132+
if accountID, ok := harnessContextRaw["account_id"].(string); ok && accountID != "" {
133133
harnessContext.AccountID = accountID
134134
}
135-
if orgID, ok := harnessContextRaw["orgID"].(string); ok && orgID != "" {
135+
if orgID, ok := harnessContextRaw["org_id"].(string); ok && orgID != "" {
136136
harnessContext.OrgID = orgID
137137
}
138-
if projectID, ok := harnessContextRaw["projectID"].(string); ok && projectID != "" {
138+
if projectID, ok := harnessContextRaw["project_id"].(string); ok && projectID != "" {
139139
harnessContext.ProjectID = projectID
140140
}
141141
}
142-
143142
// Generate or use provided IDs
144143
var finalConversationID, finalInteractionID string
145144

0 commit comments

Comments
 (0)