From fcb5f1aa6231e5b8849b82ad5bc5d27dafa7d3c9 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 29 Sep 2017 13:56:23 +0200 Subject: [PATCH] fix ibm tsm modes --- apps/backup/tsm/local/mode/actlog.pm | 2 +- apps/backup/tsm/local/mode/volumes.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/backup/tsm/local/mode/actlog.pm b/apps/backup/tsm/local/mode/actlog.pm index e1c7eaaa2..c60f78528 100644 --- a/apps/backup/tsm/local/mode/actlog.pm +++ b/apps/backup/tsm/local/mode/actlog.pm @@ -140,7 +140,7 @@ sub manage_selection { my ($self, %options) = @_; my $response = $options{custom}->execute_command( - query => "SELECT date_time, severity, message FROM actlog WHERE date_time > current_timestamp-" . $self->{option_results}->{filter_time} . " hours" + query => "SELECT date_time, severity, message FROM actlog WHERE date_time>current_timestamp-" . $self->{option_results}->{filter_time} . " hours" ); $self->{alarms}->{global} = { alarm => {} }; my $last_time; diff --git a/apps/backup/tsm/local/mode/volumes.pm b/apps/backup/tsm/local/mode/volumes.pm index b431db465..3dd5d8c3d 100644 --- a/apps/backup/tsm/local/mode/volumes.pm +++ b/apps/backup/tsm/local/mode/volumes.pm @@ -130,7 +130,7 @@ sub manage_selection { my ($self, %options) = @_; my $response = $options{custom}->execute_command( - query => "SELECT volume,name, stgpool_name, status, pct_utilized FROM volumes" + query => "SELECT volume_name, stgpool_name, status, pct_utilized FROM volumes" ); $self->{volumes} = {}; $self->{global} = { total => 0, online => 0, offline => 0, empty => 0, pending => 0, filling => 0, full => 0 };