Am 05.04.22 um 14:30 schrieb Aaron Lauterer:
> Signed-off-by: Aaron Lauterer <a.laute...@proxmox.com>
> ---
>  www/manager6/Utils.js | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
> 
> diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
> index 3351e53b..fe5be283 100644
> --- a/www/manager6/Utils.js
> +++ b/www/manager6/Utils.js
> @@ -1800,6 +1800,21 @@ Ext.define('PVE.Utils', {
>  
>       return undefined;
>      },
> +
> +    nextFreeMP: function(type, config) {
> +     for (let i = 0; i < PVE.Utils.mp_counts[type]; i++) {
> +         let confid = `${type}${i}`;
> +         if (!Ext.isDefined(config[confid])) {
> +             return {
> +                 type,
> +                 id: i,
> +                 confid,
> +             };
> +         }
> +     }
> +
> +     return undefined;
> +    },

Just noting that the getNextFreeDisk function in lxc/MultiMPEdit.js
could now re-use this.


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to