From 14957e309e59feca0df2c50ea64dec2bd83cdcfc Mon Sep 17 00:00:00 2001 From: Jason Barnett Date: Mon, 22 Mar 2021 12:29:50 -0600 Subject: [PATCH] Set name property in resourceXrayPolicyRead --- pkg/artifactory/resource_xray_policy.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/artifactory/resource_xray_policy.go b/pkg/artifactory/resource_xray_policy.go index 796fe269..87f7bf4d 100644 --- a/pkg/artifactory/resource_xray_policy.go +++ b/pkg/artifactory/resource_xray_policy.go @@ -450,6 +450,9 @@ func resourceXrayPolicyRead(d *schema.ResourceData, m interface{}) error { return err } + if err := d.Set("name", *policy.Name); err != nil { + return err + } if err := d.Set("type", *policy.Type); err != nil { return err }