# Inventory source host\_filters fails

**URL:** <https://forum.ansible.com/t/inventory-source-host-filters-fails/33953>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [October 2, 2020, 2:24pm UTC](https://forum.ansible.com/t/inventory-source-host-filters-fails/33953 "2020-10-02T14:24:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larry\_Bakun](https://avatars.discourse-cdn.com/v4/letter/l/41988e/32.png) [@Larry\_Bakun](https://forum.ansible.com/u/Larry_Bakun)\
**Post date:** [October 2, 2020, 2:24pm UTC](https://forum.ansible.com/t/inventory-source-host-filters-fails/33953/1 "2020-10-02T14:24:20Z")

</div>

We’re upgrading an old AWX version 4.0 to the latest available at this moment 14.1.  
This inventory source filter works in the old version but fails in the new AWX:  
_host\_filters: [“{{ config.name != ‘host02’ }}”,“{{ config.name != ‘host03’ }}”,“{{ config.name != ‘host04’ }}”]_

Receiving error below at the beginning of the sync process:

_Traceback (most recent call last): File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/tasks.py”, line 1383, in run args = self.build\_args(self.instance, private\_data\_dir, passwords) File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/tasks.py”, line 2594, in build\_args args.append(self.pseudo\_build\_inventory(inventory\_update, private\_data\_dir)) File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/tasks.py”, line 2619, in pseudo\_build\_inventory content = injector.inventory\_contents(inventory\_update, private\_data\_dir) File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/models/inventory.py”, line 1631, in inventory\_contents self.inventory\_as\_dict(inventory\_update, private\_data\_dir), File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/models/inventory.py”, line 2182, in inventory\_as\_dict for hf in host\_filters.split(‘,’): AttributeError: ‘list’ object has no attribute ‘split’_

How can I exclude multiple hosts in this filter?
