diff --git a/nsxt/resource_nsxt_policy_metadata_proxy.go b/nsxt/resource_nsxt_policy_metadata_proxy.go index cc98f263a..12f43279c 100644 --- a/nsxt/resource_nsxt_policy_metadata_proxy.go +++ b/nsxt/resource_nsxt_policy_metadata_proxy.go @@ -169,6 +169,7 @@ func resourceNsxtPolicyMetadataProxyRead(d *schema.ResourceData, m interface{}) d.Set("path", obj.Path) d.Set("revision", obj.Revision) d.Set("crypto_protocols", stringList2Interface(obj.CryptoProtocols)) + d.Set("secret", obj.Secret) d.Set("edge_cluster_path", obj.EdgeClusterPath) d.Set("enable_standby_relocation", obj.EnableStandbyRelocation) d.Set("preferred_edge_paths", stringList2Interface(obj.PreferredEdgePaths)) diff --git a/nsxt/resource_nsxt_policy_metadata_proxy_test.go b/nsxt/resource_nsxt_policy_metadata_proxy_test.go index 0d811fd6d..8a321147b 100644 --- a/nsxt/resource_nsxt_policy_metadata_proxy_test.go +++ b/nsxt/resource_nsxt_policy_metadata_proxy_test.go @@ -90,10 +90,9 @@ func TestAccResourceNsxtPolicyMetadataProxy_importBasic(t *testing.T) { Config: testAccNsxtPolicyMetadataProxyTemplate(true), }, { - ResourceName: testResourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"secret"}, // Secret isn't returned by NSX as it's a secret... + ResourceName: testResourceName, + ImportState: true, + ImportStateVerify: true, }, }, })