Merge pull request #1315 from hashicorp/b-heroku-config-vars-2
providers/heroku: empty config vars block shouldn't panic [GH-1211]
This commit is contained in:
commit
7d846cb97e
|
@ -358,14 +358,18 @@ func updateConfigVars(
|
||||||
vars := make(map[string]*string)
|
vars := make(map[string]*string)
|
||||||
|
|
||||||
for _, v := range o {
|
for _, v := range o {
|
||||||
for k, _ := range v.(map[string]interface{}) {
|
if v != nil {
|
||||||
vars[k] = nil
|
for k, _ := range v.(map[string]interface{}) {
|
||||||
|
vars[k] = nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for _, v := range n {
|
for _, v := range n {
|
||||||
for k, v := range v.(map[string]interface{}) {
|
if v != nil {
|
||||||
val := v.(string)
|
for k, v := range v.(map[string]interface{}) {
|
||||||
vars[k] = &val
|
val := v.(string)
|
||||||
|
vars[k] = &val
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue