Skip to content

Commit

Permalink
fix: Default alias to name (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
erezrokah committed Jun 21, 2022
1 parent cd37a11 commit 706447c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/config/config_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ func decodeConfigYAML(r io.Reader) (*Config, diag.Diagnostics) {
for k := range yc.Providers {
v := yc.Providers[k]
v.Name = k
if v.Alias == "" {
v.Alias = v.Name
}
c.Providers = append(c.Providers, v)
}

Expand Down

0 comments on commit 706447c

Please sign in to comment.