Skip to content

Commit

Permalink
Fix logical error checking if the value is not aSide or zSide
Browse files Browse the repository at this point in the history
  • Loading branch information
thogarty committed Oct 17, 2023
1 parent ecb79c5 commit 26b2f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion equinix/resource_fabric_service_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func resourceServiceProfilesSearchRequest(ctx context.Context, d *schema.Resourc
sort := serviceProfilesSearchSortRequestToFabric(schemaSort)
schemaViewPoint := d.Get("view_point").(string)

if schemaViewPoint != "" && (schemaViewPoint != string(v4.A_SIDE_ViewPoint) || schemaViewPoint != string(v4.Z_SIDE_ViewPoint)) {
if schemaViewPoint != "" && schemaViewPoint != string(v4.A_SIDE_ViewPoint) && schemaViewPoint != string(v4.Z_SIDE_ViewPoint) {
return diag.FromErr(errors.New("view_point can only be set to aSide or zSide. Omitting it will default to aSide"))
}

Expand Down

0 comments on commit 26b2f3d

Please sign in to comment.