[pve-devel] applied: [PATCH v2 manager 1/4] node zfs: added check for undefined & new case AVAIL

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Nov 9 14:51:56 CET 2018


On 11/6/18 1:48 PM, Tim Marx wrote:
> Signed-off-by: Tim Marx <t.marx at proxmox.com>

applied, thanks!

> ---
>  www/manager6/Utils.js | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
> index 568ceb7b..734682a2 100644
> --- a/www/manager6/Utils.js
> +++ b/www/manager6/Utils.js
> @@ -123,8 +123,12 @@ Ext.define('PVE.Utils', { utilities: {
>      },
>  
>      render_zfs_health: function(value) {
> +	if (typeof value == 'undefined'){
> +	    return "";
> +	}
>  	var iconCls = 'question-circle';
>  	switch (value) {
> +	    case 'AVAIL':
>  	    case 'ONLINE':
>  		iconCls = 'check-circle good';
>  		break;
> @@ -141,6 +145,7 @@ Ext.define('PVE.Utils', { utilities: {
>  	}
>  
>  	return '<i class="fa fa-' + iconCls + '"></i> ' + value;
> +

removed this new line again

>      },
>  
>      get_kvm_osinfo: function(value) {
> 




More information about the pve-devel mailing list