Skip to content

Commit

Permalink
add nil check for node pool tags (#2866)
Browse files Browse the repository at this point in the history
Merged PR #2866.
  • Loading branch information
danawillow authored and modular-magician committed Dec 20, 2019
1 parent d227b11 commit 8552f47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
4 changes: 3 additions & 1 deletion third_party/terraform/utils/node_config.go.erb
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,9 @@ func expandNodeConfig(v interface{}) *containerBeta.NodeConfig {
tagsList := v.([]interface{})
tags := []string{}
for _, v := range tagsList {
tags = append(tags, v.(string))
if v != nil {
tags = append(tags, v.(string))
}
}
nc.Tags = tags
}
Expand Down

0 comments on commit 8552f47

Please sign in to comment.