diff --git a/README.md b/README.md index b96a760..a9ce624 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ The following providers are supported: * Docker * Exoscale * Google Compute Engine +* Hetzner Cloud * [libvirt](https://github.com/dmacvicar/terraform-provider-libvirt) * Linode * OpenStack diff --git a/resource.go b/resource.go index 7c9f025..6af7724 100644 --- a/resource.go +++ b/resource.go @@ -16,7 +16,7 @@ var nameParser *regexp.Regexp func init() { keyNames = []string{ - "ipv4_address", // DO and SoftLayer + "ipv4_address", // DO and SoftLayer and HetznerCloud "public_ip", // AWS "public_ipv6", // Scaleway "ipaddress", // CS @@ -188,7 +188,7 @@ func (r Resource) Tags() map[string]string { t[kk] = vv } } - case "yandex_compute_instance": + case "yandex_compute_instance", "hcloud_server": for k, v := range r.Attributes() { parts := strings.SplitN(k, ".", 2) // At some point Terraform changed the key for counts of attributes to end with ".%"