Skip to content

Commit

Permalink
Fix structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
musa-asad committed Oct 16, 2024
1 parent b672e38 commit 03381f1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,10 @@ func verifyInstrumentationEnvVariables(clientset *kubernetes.Clientset, namespac
}
}

var config *adapters.CwaConfig
err = json.Unmarshal([]byte(cloudwatchAgentConfigMap.Data["cwagentconfig.json"]), config) // make sure to check if Data exists then map exists
var config adapters.CwaConfig
err = json.Unmarshal([]byte(cloudwatchAgentConfigMap.Data["cwagentconfig.json"]), &config) // make sure to check if Data exists then map exists
fmt.Println("Error decoding configmap, ", err)
fmt.Println("The config:", config)
fmt.Println("The &config:", &config)
fmt.Println("AppSignals Config:", config.GetApplicationSignalsConfig())

for key, value := range jsonData {
Expand Down

0 comments on commit 03381f1

Please sign in to comment.