diff --git a/equinix/resource_fabric_service_profile.go b/equinix/resource_fabric_service_profile.go index 63aeca8e4..a7b91524a 100755 --- a/equinix/resource_fabric_service_profile.go +++ b/equinix/resource_fabric_service_profile.go @@ -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")) }