Skip to content

Commit

Permalink
Merge pull request #240 from terraform-providers/fix_empty_tags
Browse files Browse the repository at this point in the history
Fix tag removal in vm tags resource
  • Loading branch information
annakhm committed Feb 18, 2020
2 parents 5788ac8 + 7ced336 commit 4dec826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsxt/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func getTagsSchemaForceNew() *schema.Schema {

func getCustomizedTagsFromSchema(d *schema.ResourceData, schemaName string) []common.Tag {
tags := d.Get(schemaName).(*schema.Set).List()
var tagList []common.Tag
tagList := make([]common.Tag, 0)
for _, tag := range tags {
data := tag.(map[string]interface{})
elem := common.Tag{
Expand Down

0 comments on commit 4dec826

Please sign in to comment.