dangogh closed pull request #1800: Fix deep_caching_type validator regex URL: https://github.com/apache/incubator-trafficcontrol/pull/1800
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/traffic_ops/app/lib/API/Deliveryservice.pm b/traffic_ops/app/lib/API/Deliveryservice.pm index 675c1dace0..9a8018dc62 100644 --- a/traffic_ops/app/lib/API/Deliveryservice.pm +++ b/traffic_ops/app/lib/API/Deliveryservice.pm @@ -1387,7 +1387,7 @@ sub is_deliveryservice_valid { active => [ is_required("is required") ], cdnId => [ is_required("is required"), \&is_valid_int_or_undef ], ccrDnsTtl => [ \&is_valid_int_or_undef ], - deepCachingType => [ is_like( qr/^NEVER|ALWAYS$/, "must be NEVER or ALWAYS" ) ], + deepCachingType => [ is_like( qr/^(NEVER|ALWAYS)$/, "must be NEVER or ALWAYS" ) ], dnsBypassTtl => [ \&is_valid_int_or_undef ], dscp => [ is_required("is required"), \&is_valid_int_or_undef ], displayName => [ is_required("is required"), is_long_at_most( 48, 'too long' ) ], ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services