This commit is contained in:
TheNetworkGuy 2025-06-16 16:03:53 +00:00
parent dec2cf6996
commit affd4c6998
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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",