Skip to content

Commit

Permalink
fix test and schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Mar 21, 2022
1 parent 483c8bf commit 0a7cf6a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cloudflare/resource_cloudflare_spectrum_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func resourceCloudflareSpectrumApplicationRead(d *schema.ResourceData, meta inte
if err := d.Set("edge_ips", flattenEdgeIPs(application.EdgeIPs)); err != nil {
log.Printf("[WARN] Error setting Edge IPs on spectrum application %q: %s", d.Id(), err)
}
if err := d.Set("edge_ip_connectivity", application.EdgeIPs.Connectivity); err != nil {
if err := d.Set("edge_ip_connectivity", application.EdgeIPs.Connectivity.String()); err != nil {
log.Printf("[WARN] Error setting Edge IP connectivity on spectrum application %q: %s", d.Id(), err)
}
}
Expand Down
5 changes: 2 additions & 3 deletions cloudflare/resource_cloudflare_spectrum_application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,8 @@ resource "cloudflare_spectrum_application" "%[3]s" {
name = "%[3]s.%[2]s"
}
origin_dns {
name = "%[3]s.origin.%[2]s"
}
origin_direct = ["tcp://1.2.3.4:23"]
origin_port = 22
edge_ip_connectivity = "ipv4"
}`, zoneID, zoneName, ID)
}
1 change: 1 addition & 0 deletions cloudflare/schema_cloudflare_spectrum_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ func resourceCloudflareSpectrumApplicationSchema() map[string]*schema.Schema {
"edge_ip_connectivity": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validation.StringInSlice([]string{
"all", "ipv4", "ipv6",
}, false),
Expand Down

0 comments on commit 0a7cf6a

Please sign in to comment.