From f46548ed884810c7b140d452663c26e800021774 Mon Sep 17 00:00:00 2001 From: Josh Patterson Date: Sun, 16 Feb 2025 02:25:18 -0500 Subject: [PATCH] remove free hw from description --- salt/soc/dyanno/hypervisor/hypervisor.yaml | 2 +- salt/soc/dyanno/hypervisor/soc_hypervisor.yaml.jinja | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/salt/soc/dyanno/hypervisor/hypervisor.yaml b/salt/soc/dyanno/hypervisor/hypervisor.yaml index f6c955970..e2a0028a8 100644 --- a/salt/soc/dyanno/hypervisor/hypervisor.yaml +++ b/salt/soc/dyanno/hypervisor/hypervisor.yaml @@ -2,7 +2,7 @@ hypervisor: hosts: 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 uiElements: - field: hostname diff --git a/salt/soc/dyanno/hypervisor/soc_hypervisor.yaml.jinja b/salt/soc/dyanno/hypervisor/soc_hypervisor.yaml.jinja index 6541da318..f5ce34563 100644 --- a/salt/soc/dyanno/hypervisor/soc_hypervisor.yaml.jinja +++ b/salt/soc/dyanno/hypervisor/soc_hypervisor.yaml.jinja @@ -4,11 +4,7 @@ {%- set TEMPLATE = ANNOTATION.hypervisor.hosts.pop('defaultHost') -%} {%- macro update_description(description, cpu_free, mem_free, disk_free, copper_free, sfp_free) -%} -{{- description | replace('CPUFREE', cpu_free | string) - | replace('MEMFREE', mem_free | string) - | replace('DISKFREE', disk_free | string) - | replace('COPPERFREE', copper_free | string) - | replace('SFPFREE', sfp_free | string) -}} +{{- description -}} {%- endmacro -%} {%- macro update_label(label, total, free) -%}