Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master b7181e10b -> 97c2e7cf2


DS Regex Tenancy - if no ds found return not-found on regex


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/9b456a7b
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/9b456a7b
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/9b456a7b

Branch: refs/heads/master
Commit: 9b456a7b3c4b4a3480f082d2fdae4f9f7cb1f47c
Parents: e45f628
Author: nir-sopher <n...@qwilt.com>
Authored: Tue Aug 1 10:11:38 2017 +0300
Committer: Jeremy Mitchell <mitchell...@gmail.com>
Committed: Thu Aug 3 10:17:39 2017 -0600

----------------------------------------------------------------------
 traffic_ops/app/lib/API/DeliveryServiceRegexes.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/9b456a7b/traffic_ops/app/lib/API/DeliveryServiceRegexes.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/DeliveryServiceRegexes.pm 
b/traffic_ops/app/lib/API/DeliveryServiceRegexes.pm
index 2151961..37d91e5 100644
--- a/traffic_ops/app/lib/API/DeliveryServiceRegexes.pm
+++ b/traffic_ops/app/lib/API/DeliveryServiceRegexes.pm
@@ -264,7 +264,7 @@ sub delete {
 
        my $ds = $self->db->resultset('Deliveryservice')->find( { id => $ds_id 
} );
        if ( !defined($ds) ) {
-               #allow deletion if the ds is not valid
+        return $self->not_found();
        }
        else{
                my $tenant_utils = Utils::Tenant->new($self);

Reply via email to