remove free hw from description

This commit is contained in:
Josh Patterson
2025-02-16 02:25:18 -05:00
parent 0d335e3056
commit f46548ed88
2 changed files with 2 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ hypervisor:
hosts: hosts:
defaultHost: defaultHost:
title: defaultHost title: defaultHost
description: "Available CPU: CPUFREE | Available Memory: MEMFREE | Available Disk: DISKFREE | Available Copper NIC: COPPERFREE | Available SFP NIC: SFPFREE" description: "Hypervisor Configuration"
syntax: json syntax: json
uiElements: uiElements:
- field: hostname - field: hostname

View File

@@ -4,11 +4,7 @@
{%- set TEMPLATE = ANNOTATION.hypervisor.hosts.pop('defaultHost') -%} {%- set TEMPLATE = ANNOTATION.hypervisor.hosts.pop('defaultHost') -%}
{%- macro update_description(description, cpu_free, mem_free, disk_free, copper_free, sfp_free) -%} {%- macro update_description(description, cpu_free, mem_free, disk_free, copper_free, sfp_free) -%}
{{- description | replace('CPUFREE', cpu_free | string) {{- description -}}
| replace('MEMFREE', mem_free | string)
| replace('DISKFREE', disk_free | string)
| replace('COPPERFREE', copper_free | string)
| replace('SFPFREE', sfp_free | string) -}}
{%- endmacro -%} {%- endmacro -%}
{%- macro update_label(label, total, free) -%} {%- macro update_label(label, total, free) -%}