[pve-devel] applied: [PATCH v3 storage 1/2] fix #3894: cast 'size' and 'used' to integer

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Feb 21 16:08:48 CET 2022


On 18.02.22 09:58, Mira Limbeck wrote:
> Perl's automatic conversion can lead to integers being converted to
> strings, for example by matching it in a regex.
> 
> To make sure we always return an integer in the API call, add an
> explicit cast to integer.
> 
> Signed-off-by: Mira Limbeck <m.limbeck at proxmox.com>
> Reviewed-by: Fabian Ebner <f.ebner at proxmox.com>
> ---
> v3:
>  - fixed style nits
>  - added R-b tag
> v2:
>  - new
> 
>  PVE/API2/Storage/Content.pm | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
>

applied, thanks!





More information about the pve-devel mailing list