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(