diff --git a/spectrocloud/resource_cluster_profile.go b/spectrocloud/resource_cluster_profile.go index f8277b5e..aeb2f5e0 100644 --- a/spectrocloud/resource_cluster_profile.go +++ b/spectrocloud/resource_cluster_profile.go @@ -130,6 +130,9 @@ func resourceClusterProfileUpdate(ctx context.Context, d *schema.ResourceData, m if err := c.UpdateClusterProfile(cluster); err != nil { return diag.FromErr(err) } + if err := c.PublishClusterProfile(cluster.Metadata.UID); err != nil { + return diag.FromErr(err) + } } resourceClusterProfileRead(ctx, d, m) @@ -168,6 +171,7 @@ func toClusterProfile(d *schema.ResourceData) *models.V1alpha1ClusterProfileEnti }, } + packs := make([]*models.V1alpha1PackEntity, 0) for _, pack := range d.Get("pack").([]interface{}) { p := toClusterProfilePack(pack)