From affd4c699880440b29661b44568c26de2834ce0f Mon Sep 17 00:00:00 2001 From: TheNetworkGuy Date: Mon, 16 Jun 2025 16:03:53 +0000 Subject: [PATCH] Fixes #127 --- modules/hostgroups.py | 1 + modules/tools.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/hostgroups.py b/modules/hostgroups.py index 68b0bb1..8bbec86 100644 --- a/modules/hostgroups.py +++ b/modules/hostgroups.py @@ -85,6 +85,7 @@ class Hostgroup: format_options["location"] = ( str(self.nb.location) if self.nb.location else None ) + format_options["rack"] = self.nb.rack.name if self.nb.rack else None # Variables only applicable for VM's if self.type == "vm": # Check if a cluster is configured. Could also be configured in a site. diff --git a/modules/tools.py b/modules/tools.py index 0b600c2..823410e 100644 --- a/modules/tools.py +++ b/modules/tools.py @@ -120,7 +120,7 @@ def verify_hg_format(hg_format, device_cfs=None, vm_cfs=None, hg_type="dev", log "tenant_group", "platform", "cluster"] - ,"vm": ["location", + ,"vm": ["cluster_type", "role", "manufacturer", "region",