Skip to content

Commit

Permalink
Merge pull request #1133 from Tharsanan1/master
Browse files Browse the repository at this point in the history
Improve code
  • Loading branch information
CrowleyRajapakse authored Apr 3, 2024
2 parents 48c71da + 1ebbf5a commit f06d07a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apim-apk-agent/pkg/managementserver/rest_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ func createDeployementYaml(vhost string) string {
if err == nil {
envLabel = config.ControlPlane.EnvironmentLabels
}
deploymentEnvData := []map[string]string{}
deploymentEnvData := []map[string]interface{}{}
for _, label := range envLabel {
deploymentEnvData = append(deploymentEnvData, map[string]string{
"displayOnDevportal": "true",
deploymentEnvData = append(deploymentEnvData, map[string]interface{}{
"displayOnDevportal": true,
"deploymentEnvironment": label,
"deploymentVhost": vhost,
})
Expand Down

0 comments on commit f06d07a

Please sign in to comment.