Skip to content

Commit

Permalink
persist early_hints to state
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Oct 31, 2021
1 parent 9cf0f52 commit 6d1a5d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .changelog/1286.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

```release-note:enhancement
resource/cloudflare_custom_hostname: add `settings.early_hints` to ssl schema
```
```
2 changes: 2 additions & 0 deletions cloudflare/resource_cloudflare_custom_hostname.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func resourceCloudflareCustomHostnameRead(d *schema.ResourceData, meta interface
"tls13": customHostname.SSL.Settings.TLS13,
"min_tls_version": customHostname.SSL.Settings.MinTLSVersion,
"ciphers": customHostname.SSL.Settings.Ciphers,
"early_hints": customHostname.SSL.Settings.EarlyHints,
}},
})
}
Expand Down Expand Up @@ -289,6 +290,7 @@ func buildCustomHostname(d *schema.ResourceData) cloudflare.CustomHostname {
TLS13: d.Get("ssl.0.settings.0.tls13").(string),
MinTLSVersion: d.Get("ssl.0.settings.0.min_tls_version").(string),
Ciphers: expandInterfaceToStringList(d.Get("ssl.0.settings.0.ciphers").(*schema.Set).List()),
EarlyHints: d.Get("ssl.0.settings.0.early_hints").(string),
},
}
}
Expand Down
4 changes: 2 additions & 2 deletions cloudflare/resource_cloudflare_custom_hostname_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ resource "cloudflare_custom_hostname" "%[2]s" {
"ECDHE-RSA-AES128-GCM-SHA256",
"AES128-SHA"
]
early_hints = "off"
early_hints = "off"
}
}
}
Expand Down Expand Up @@ -237,7 +237,7 @@ resource "cloudflare_custom_hostname" "%[2]s" {
"ECDHE-RSA-AES128-GCM-SHA256",
"AES128-SHA"
]
early_hints = "off"
early_hints = "off"
}
}
}
Expand Down

0 comments on commit 6d1a5d2

Please sign in to comment.