From 26b2f3dac925c44d0e1fb2193e6943e403b408bf Mon Sep 17 00:00:00 2001 From: Tim Hogarty Date: Tue, 17 Oct 2023 14:37:23 -0700 Subject: [PATCH] Fix logical error checking if the value is not aSide or zSide --- equinix/resource_fabric_service_profile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) }