You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2017/04/26 23:49:42 UTC
[1/2] incubator-trafficcontrol git commit: added domain_name and
dnssec_enabled to ORM update code and updated log message.
Repository: incubator-trafficcontrol
Updated Branches:
refs/heads/master fb723fefb -> 9607cbae6
added domain_name and dnssec_enabled to ORM update code and updated log message.
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/aaaa1200
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/aaaa1200
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/aaaa1200
Branch: refs/heads/master
Commit: aaaa1200fe0f3b028929229ae9dda784f9dcec66
Parents: fb723fe
Author: Robert Scrimo <ro...@comcast.com>
Authored: Wed Apr 26 16:20:25 2017 -0600
Committer: Jeremy Mitchell <mi...@gmail.com>
Committed: Wed Apr 26 17:49:06 2017 -0600
----------------------------------------------------------------------
traffic_ops/app/lib/UI/Cdn.pm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/aaaa1200/traffic_ops/app/lib/UI/Cdn.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/UI/Cdn.pm b/traffic_ops/app/lib/UI/Cdn.pm
index ca157ad..7944603 100644
--- a/traffic_ops/app/lib/UI/Cdn.pm
+++ b/traffic_ops/app/lib/UI/Cdn.pm
@@ -71,6 +71,7 @@ sub update {
my $self = shift;
my $id = $self->param('id');
my $priv_level = $self->stash('priv_level');
+ my $dnssec_enabled = defined($self->param('cdn_data.dnssec_enabled')) ? $self->param('cdn_data.dnssec_enabled') : 0;
$self->stash(
id => $id,
@@ -95,12 +96,17 @@ sub update {
else {
my $update = $self->db->resultset('Cdn')->find( { id => $self->param('id') } );
$update->name( $self->param('cdn_data.name') );
+ $update->domain_name( $self->param('cdn_data.domain_name') );
+ $update->dnssec_enabled( $dnssec_enabled );
$update->update();
# if the update has failed, we don't even get here, we go to the exception page.
}
- &log( $self, "Update Cdn with name:" . $self->param('cdn_data.name'), "UICHANGE" );
+ my $msg = "Update Cdn with name:" . $self->param('cdn_data.name') .
+ "; domain_name: " . $self->param('cdn_data.domain_name') .
+ "; dnssec_enabled: " . $self->param('cdn_data.dnssec_enabled');
+ &log( $self, $msg, "UICHANGE" );
$self->flash( message => "Successfully updated CDN." );
return $self->redirect_to( '/cdn/edit/' . $id );
}
[2/2] incubator-trafficcontrol git commit: This closes #525
Posted by mi...@apache.org.
This closes #525
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/9607cbae
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/9607cbae
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/9607cbae
Branch: refs/heads/master
Commit: 9607cbae67837749f60d5120dd16be53173a074b
Parents: aaaa120
Author: Jeremy Mitchell <mi...@gmail.com>
Authored: Wed Apr 26 17:49:22 2017 -0600
Committer: Jeremy Mitchell <mi...@gmail.com>
Committed: Wed Apr 26 17:49:22 2017 -0600
----------------------------------------------------------------------
----------------------------------------------------------------------