Skip to content
This repository was archived by the owner on Dec 5, 2020. It is now read-only.

Commit e3e2eda

Browse files
committed
Fixup link validation for Ignition 0.33.0
1 parent eb170ae commit e3e2eda

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ignition/resource_ignition_link.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ package ignition
22

33
import (
44
"encoding/json"
5+
"reflect"
56

67
"github.com/coreos/ignition/config/v2_1/types"
8+
"github.com/coreos/ignition/config/validate"
79
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
810
)
911

@@ -92,5 +94,5 @@ func buildLink(d *schema.ResourceData) (string, error) {
9294
}
9395
d.Set("rendered", string(b))
9496

95-
return hash(string(b)), handleReport(link.Validate())
97+
return hash(string(b)), handleReport(validate.ValidateWithoutSource(reflect.ValueOf(link)))
9698
}

0 commit comments

Comments
 (0)