implementing ancestor traversal for inventories by hostname :neckbeard: