From 210474a2a5996f6876b54e4921c42b7edcf3cb01 Mon Sep 17 00:00:00 2001 From: Paul Stack Date: Wed, 22 Feb 2017 23:25:03 +0200 Subject: [PATCH] provider/spotinst: Disallow passing an empty user_data string (#12179) Was missed off the merged as I didn't merge from local to master --- builtin/providers/spotinst/resource_spotinst_aws_group.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/builtin/providers/spotinst/resource_spotinst_aws_group.go b/builtin/providers/spotinst/resource_spotinst_aws_group.go index a1452eaf9..e838a5737 100755 --- a/builtin/providers/spotinst/resource_spotinst_aws_group.go +++ b/builtin/providers/spotinst/resource_spotinst_aws_group.go @@ -2077,8 +2077,6 @@ func expandAwsGroupLaunchSpecification(data interface{}) (*spotinst.AwsGroupComp if v, ok := m["user_data"].(string); ok && v != "" { lc.UserData = spotinst.String(base64.StdEncoding.EncodeToString([]byte(v))) - } else { - lc.UserData = spotinst.String("") } if v, ok := m["security_group_ids"].([]interface{}); ok {