Skip to content

Commit

Permalink
removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
SivaanandM committed Dec 25, 2024
1 parent bec3144 commit ebca374
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions spectrocloud/resource_cluster_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,16 +477,6 @@ func toClusterProfileVariables(d *schema.ResourceData) ([]*models.V1Variable, er
var profileVariables []*models.V1Variable
if pVariables, ok := d.GetOk("profile_variables"); ok {

// Once the profile_Variables feature is extended to all cloud types, the following block should be removed.
//cloudType, _ := d.Get("cloud").(string)
//profileType, _ := d.Get("type").(string)
//if cloudType != "edge-native" {
// if profileType != "add-on" {
// err := errors.New("currently, `profile_variables` is only supported for the `add-on` profile type and other profile type is supported only for edge-native cloud type")
// return profileVariables, err
// }
//}

if pVariables.([]interface{})[0] != nil {
variables := pVariables.([]interface{})[0].(map[string]interface{})["variable"]
for _, v := range variables.([]interface{}) {
Expand Down

0 comments on commit ebca374

Please sign in to comment.