get rid of dumper shenanigans
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/9e6096cc Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/9e6096cc Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/9e6096cc Branch: refs/heads/master Commit: 9e6096cc33954fd617de4ecb5e74e7dda24fefcd Parents: 7109851 Author: Derek Gelinas <[email protected]> Authored: Thu Mar 2 23:20:27 2017 +0000 Committer: Jeremy Mitchell <[email protected]> Committed: Thu Mar 16 15:08:24 2017 -0600 ---------------------------------------------------------------------- traffic_ops/app/lib/UI/Server.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/9e6096cc/traffic_ops/app/lib/UI/Server.pm ---------------------------------------------------------------------- diff --git a/traffic_ops/app/lib/UI/Server.pm b/traffic_ops/app/lib/UI/Server.pm index 391e468..de4bbeb 100644 --- a/traffic_ops/app/lib/UI/Server.pm +++ b/traffic_ops/app/lib/UI/Server.pm @@ -990,9 +990,7 @@ sub postupdate { my $updated = $self->param("updated"); my $reval_updated = $self->param("reval_updated"); my $host_name = $self->param("host_name"); - print STDERR Dumper($updated); - print STDERR Dumper($reval_updated); - print STDERR Dumper($host_name); + if ( !&is_admin($self) ) { $self->render( text => "Forbidden", status => 403, layout => undef ); return; @@ -1024,12 +1022,10 @@ sub postupdate { my $use_reval_pending = $self->db->resultset('Parameter')->search( { -and => [ 'name' => 'use_reval_pending', 'config_file' => 'global' ] } )->get_column('value')->single; if ( defined($use_reval_pending) && $use_reval_pending == 1 ) { - print STDERR "updating upd_pending and reval_pending\n"; $update_server->update( { upd_pending => $updated } ); $update_server->update( { reval_pending => $reval_updated } ); } else { - print STDERR "updating upd_pending\n"; $update_server->update( { upd_pending => $updated } ); }
