Skip to content

Commit

Permalink
fix: update file type config error (#4091)
Browse files Browse the repository at this point in the history
  • Loading branch information
sixther-dc authored Feb 18, 2022
1 parent 6f3d6c2 commit aed13e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/dop/services/environment/env_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,9 @@ func verifyEnvConfigs(configs []apistructs.EnvConfig) error {
if env.Key == "" {
return errors.Errorf("environment config key error, env: %+v", env)
}
if env.ConfigType != "FILE" && env.ConfigType != "ENV" {
if env.Type == "dice-file" {
configs[i].ConfigType = "FILE"
} else {
configs[i].ConfigType = "ENV"
}
}
Expand Down

0 comments on commit aed13e1

Please # to comment.