+ Enhance partitioning mode

This commit is contained in:
garnier-quentin 2015-08-25 13:58:40 +02:00
parent 9af4340d4d
commit f2579b4e9c

View File

@ -74,6 +74,7 @@ sub run {
$self->{output}->output_add(severity => 'OK', $self->{output}->output_add(severity => 'OK',
short_msg => sprintf("All table partitions are up to date")); short_msg => sprintf("All table partitions are up to date"));
foreach my $value (@{$self->{option_results}->{tablename}}) { foreach my $value (@{$self->{option_results}->{tablename}}) {
next if ($value eq '');
if ($value !~ /(\S+)\.(\S+)/) { if ($value !~ /(\S+)\.(\S+)/) {
$self->{output}->output_add(severity => 'UNKNOWN', $self->{output}->output_add(severity => 'UNKNOWN',
short_msg => sprintf("Wrong table name '%s'", $value)); short_msg => sprintf("Wrong table name '%s'", $value));