From 543a2c484d76825a205c761f0aad7949b75c7bc2 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 4 Feb 2020 15:34:45 +0100 Subject: [PATCH] better message for datastore-vm and datastore-iops --- apps/vmware/connector/mode/datastoreiops.pm | 3 ++- apps/vmware/connector/mode/datastorevm.pm | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/vmware/connector/mode/datastoreiops.pm b/apps/vmware/connector/mode/datastoreiops.pm index d23b5a11c..1a0b2c3b7 100644 --- a/apps/vmware/connector/mode/datastoreiops.pm +++ b/apps/vmware/connector/mode/datastoreiops.pm @@ -165,7 +165,8 @@ sub manage_selection { severity => 'OK', short_msg => $response->{short_message} ); - return ; + $self->{output}->display(); + $self->{output}->exit(); } foreach my $ds_id (keys %{$response->{data}}) { diff --git a/apps/vmware/connector/mode/datastorevm.pm b/apps/vmware/connector/mode/datastorevm.pm index c6cc54067..23657ea95 100644 --- a/apps/vmware/connector/mode/datastorevm.pm +++ b/apps/vmware/connector/mode/datastorevm.pm @@ -175,7 +175,8 @@ sub manage_selection { severity => 'OK', short_msg => $response->{short_message} ); - return ; + $self->{output}->display(); + $self->{output}->exit(); } foreach my $vm_id (keys %{$response->{data}}) {