Skip to content

Commit

Permalink
Improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharsanan1 committed Apr 3, 2024
1 parent 6bce7a6 commit 1ebbf5a
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 1ebbf5a

Please sign in to comment.