From a319238d96ebd7c3b4f9e0f9cd9fb0dc039803bb Mon Sep 17 00:00:00 2001 From: Sivaanand Murugesan Date: Mon, 18 Sep 2023 20:25:06 +0530 Subject: [PATCH] addressed review comments --- spectrocloud/cluster_common_profiles.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spectrocloud/cluster_common_profiles.go b/spectrocloud/cluster_common_profiles.go index 6d4d165e..7689f54b 100644 --- a/spectrocloud/cluster_common_profiles.go +++ b/spectrocloud/cluster_common_profiles.go @@ -25,11 +25,13 @@ func toAddonDeplProfiles(c *client.V1Client, d *schema.ResourceData) ([]*models. clusterUid = uid.(string) //d.Get("cluster_uid").(string) } if ct, ok := d.GetOk("cluster_context"); ok && c != nil { - clusterUid = ct.(string) //d.Get("cluster_context").(string) + clusterContext = ct.(string) //d.Get("cluster_context").(string) } // handling cluster day 2 addon profile operation flow - if clusterUid == "" && clusterContext == "" { + if clusterUid == "" { clusterUid = d.Id() + } + if clusterContext == "" { clusterContext = d.Get("context").(string) }