[pve-devel] [PATCH manager v4 7/9] API2/Ceph/Pools: remove unnecessary boolean conversion

Dominik Csapak d.csapak at proxmox.com
Tue Apr 20 10:15:21 CEST 2021


we do nothing with that field, so leave it like it is

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/API2/Ceph/Pools.pm | 1 -
 1 file changed, 1 deletion(-)

diff --git a/PVE/API2/Ceph/Pools.pm b/PVE/API2/Ceph/Pools.pm
index 939a1f8a..45f0c47c 100644
--- a/PVE/API2/Ceph/Pools.pm
+++ b/PVE/API2/Ceph/Pools.pm
@@ -26,7 +26,6 @@ my $get_autoscale_status = sub {
 
     my $data;
     foreach my $p (@$autoscale) {
-	$p->{would_adjust} = "$p->{would_adjust}"; # boolean
 	$data->{$p->{pool_name}} = $p;
     }
 
-- 
2.20.1





More information about the pve-devel mailing list