From c8b089b7fc9f6c6f71c6be7073ba35c4ed5711d0 Mon Sep 17 00:00:00 2001 From: george-ghawali Date: Mon, 7 Oct 2024 15:30:46 +0300 Subject: [PATCH] Revert "Adding imprv where user can group VMs by project name" This reverts commit 1e75a6169cbce85c0ea5c1d4d689ed95596a24c4. --- plugins/inventory/ntnx_prism_vm_inventory.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/plugins/inventory/ntnx_prism_vm_inventory.py b/plugins/inventory/ntnx_prism_vm_inventory.py index c6100813..4a085861 100644 --- a/plugins/inventory/ntnx_prism_vm_inventory.py +++ b/plugins/inventory/ntnx_prism_vm_inventory.py @@ -184,12 +184,6 @@ def parse(self, inventory, loader, path, cache=True): self.inventory.set_variable( vm_name, "ntnx_categories", entity["metadata"]["categories"] ) - if "metadata" in entity and "project_reference" in entity["metadata"]: - self.inventory.set_variable( - vm_name, - "ntnx_project", - entity["metadata"]["project_reference"]["name"], - ) # Add variables created by the user's Jinja2 expressions to the host self._set_composite_vars(