From 26fa634746f4c4e723e3eebb3592623d7f7466fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Magnus=20Landr=C3=B8?= Date: Mon, 18 Sep 2017 13:55:16 +0200 Subject: [PATCH] Implementing support for missing refreshed values --- hcp/resource_namespace.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hcp/resource_namespace.go b/hcp/resource_namespace.go index c2667b6..fa0c52d 100644 --- a/hcp/resource_namespace.go +++ b/hcp/resource_namespace.go @@ -216,9 +216,18 @@ func resourceNamespaceRead(d *schema.ResourceData, m interface{}) error { name := d.Get("name").(string) if namespace, err := hcpClient(m).ReadNamespace(name); err == nil { - // TODO d.Set("soft_quota", namespace.SoftQuota) d.Set("hard_quota", namespace.HardQuota) + d.Set("replication_enabled", namespace.ReplicationEnabled) + d.Set("read_from_replica", namespace.ReadFromReplica) + d.Set("enterprise_mode", namespace.EnterpriseMode) + d.Set("optimized_for", namespace.OptimizedFor) + d.Set("search_enabled", namespace.SearchEnabled) + d.Set("indexing_enabled", namespace.IndexingEnabled) + d.Set("custom_metadata_indexing_enabled", namespace.CustomMetadataIndexingEnabled) + d.Set("service_remote_system_requests", namespace.ServiceRemoteSystemRequests) + d.Set("acls_usage", namespace.AclsUsage) + d.Set("owner", namespace.Owner) return nil } else {