From 490293d627f0f2865e827d7b3578365e80e31d9d Mon Sep 17 00:00:00 2001 From: Shini31 Date: Tue, 7 Jun 2016 17:23:13 +0200 Subject: [PATCH] add unit --- centreon-plugins/cloud/openstack/restapi/mode/listvolumes.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/cloud/openstack/restapi/mode/listvolumes.pm b/centreon-plugins/cloud/openstack/restapi/mode/listvolumes.pm index f20f89fe1..7bd5b31f7 100644 --- a/centreon-plugins/cloud/openstack/restapi/mode/listvolumes.pm +++ b/centreon-plugins/cloud/openstack/restapi/mode/listvolumes.pm @@ -147,7 +147,7 @@ sub disco_show { foreach my $volumename (keys %{$self->{volumes_infos}}) { $self->{output}->add_disco_entry(name => $volumename, id => $self->{volumes_infos}->{$volumename}->{id}, - size => $self->{volumes_infos}->{$volumename}->{size}, + size => $self->{volumes_infos}->{$volumename}->{size}."Gb", type => $self->{volumes_infos}->{$volumename}->{type}, state => $self->{volumes_infos}->{$volumename}->{state}, ); @@ -161,7 +161,7 @@ sub run { $self->api_request(); foreach my $volumename (keys %{$self->{volumes_infos}}) { - $self->{output}->output_add(long_msg => sprintf("%s [id = %s , size = %s, type = %s, state = %s]", + $self->{output}->output_add(long_msg => sprintf("%s [id = %s , size = %sGb, type = %s, state = %s]", $volumename, $self->{volumes_infos}->{$volumename}->{id}, $self->{volumes_infos}->{$volumename}->{size},