provider/spotinst: Disallow passing an empty user_data string (#12179)

Was missed off the merged as I didn't merge from local to master
This commit is contained in:
Paul Stack 2017-02-22 23:25:03 +02:00 committed by GitHub
parent f37800ae62
commit 210474a2a5
1 changed files with 0 additions and 2 deletions

View File

@ -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 {