mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
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:
parent
f37800ae62
commit
210474a2a5
@ -2077,8 +2077,6 @@ func expandAwsGroupLaunchSpecification(data interface{}) (*spotinst.AwsGroupComp
|
|||||||
|
|
||||||
if v, ok := m["user_data"].(string); ok && v != "" {
|
if v, ok := m["user_data"].(string); ok && v != "" {
|
||||||
lc.UserData = spotinst.String(base64.StdEncoding.EncodeToString([]byte(v)))
|
lc.UserData = spotinst.String(base64.StdEncoding.EncodeToString([]byte(v)))
|
||||||
} else {
|
|
||||||
lc.UserData = spotinst.String("")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if v, ok := m["security_group_ids"].([]interface{}); ok {
|
if v, ok := m["security_group_ids"].([]interface{}); ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user