Skip to content

Commit

Permalink
PLT-1497:Fixed spectrocloud_cluster_profile_import resource for day 2…
Browse files Browse the repository at this point in the history
… operations. (#549)
  • Loading branch information
SivaanandM authored Nov 21, 2024
1 parent c742f55 commit f53f5ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spectrocloud/resource_cluster_profile_import_feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,11 @@ func toClusterProfileImportCreate(d *schema.ResourceData) (*os.File, error) {
func resourceClusterProfileImportFeatureRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
resourceContext := d.Get("context").(string)
c := getV1ClientWithResourceContext(m, resourceContext)
clusterProfile, err := c.ClusterProfileExport(d.Id())
_, err := c.ClusterProfileExport(d.Id())
if err != nil {
return diag.FromErr(err)
}
//we don't want to set back the cluster profile, currently we're only supporting profile file name in schema not content.
if err := d.Set("import_file", clusterProfile); err != nil {
return diag.FromErr(err)
}

return nil
}
Expand Down

0 comments on commit f53f5ba

Please sign in to comment.