mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 21:54:48 +00:00
Fix/update t/pt-agent/run_agent.t.
This commit is contained in:
@@ -4892,7 +4892,7 @@ sub make_new_crontab {
|
||||
my @other_lines
|
||||
= grep { $_ !~ m/pt-agent (?:--run-service|--send-data)/ }
|
||||
split("\n", $crontab_list);
|
||||
PTDEBUG && _d('Other crontab lines:', \@other_lines);
|
||||
PTDEBUG && _d('Other crontab lines:', Dumper(\@other_lines));
|
||||
|
||||
my @pt_agent_lines;
|
||||
foreach my $service ( @$services ) {
|
||||
@@ -4907,7 +4907,7 @@ sub make_new_crontab {
|
||||
. $service->name;
|
||||
}
|
||||
}
|
||||
PTDEBUG && _d('pt-agent crontab lines:', \@pt_agent_lines);
|
||||
PTDEBUG && _d('pt-agent crontab lines:', Dumper(\@pt_agent_lines));
|
||||
|
||||
my $new_crontab = join("\n", @other_lines, @pt_agent_lines) . "\n";
|
||||
|
||||
|
Reference in New Issue
Block a user