Skip to content

Commit ebca374

Browse files
committed
removed commented code
1 parent bec3144 commit ebca374

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

spectrocloud/resource_cluster_profile.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -477,16 +477,6 @@ func toClusterProfileVariables(d *schema.ResourceData) ([]*models.V1Variable, er
477477
var profileVariables []*models.V1Variable
478478
if pVariables, ok := d.GetOk("profile_variables"); ok {
479479

480-
// Once the profile_Variables feature is extended to all cloud types, the following block should be removed.
481-
//cloudType, _ := d.Get("cloud").(string)
482-
//profileType, _ := d.Get("type").(string)
483-
//if cloudType != "edge-native" {
484-
// if profileType != "add-on" {
485-
// 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")
486-
// return profileVariables, err
487-
// }
488-
//}
489-
490480
if pVariables.([]interface{})[0] != nil {
491481
variables := pVariables.([]interface{})[0].(map[string]interface{})["variable"]
492482
for _, v := range variables.([]interface{}) {

0 commit comments

Comments
 (0)