diff --git a/src/storage/purestorage/flasharray/v2/restapi/mode/volumes.pm b/src/storage/purestorage/flasharray/v2/restapi/mode/volumes.pm index 293c87676..a77ca9041 100644 --- a/src/storage/purestorage/flasharray/v2/restapi/mode/volumes.pm +++ b/src/storage/purestorage/flasharray/v2/restapi/mode/volumes.pm @@ -196,15 +196,18 @@ sub manage_selection { name => $item->{name}, reduction => { data => $item->{space}->{data_reduction} - }, - space => { + } + }; + + if ($item->{provisioned} > 0) { + $self->{volumes}->{ $item->{name} }->{space} = { total => $item->{provisioned}, used => $item->{space}->{total_physical}, free => $item->{provisioned} - $item->{space}->{total_physical}, prct_used => $item->{space}->{total_physical} * 100 / $item->{provisioned}, prct_free => (100 - ($item->{space}->{total_physical} * 100 / $item->{provisioned})) - } - }; + }; + } } foreach my $perf (@$perfs) {