Skip to content

Commit

Permalink
Bug fix to publish after update cluster profile
Browse files Browse the repository at this point in the history
  • Loading branch information
saamalik committed Jan 17, 2021
1 parent 366fc95 commit 122dbd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spectrocloud/resource_cluster_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 122dbd2

Please sign in to comment.