diff --git a/lib/ansible/modules/network/f5/bigip_gtm_pool_member.py b/lib/ansible/modules/network/f5/bigip_gtm_pool_member.py index 4ff5568076..befa6b8677 100644 --- a/lib/ansible/modules/network/f5/bigip_gtm_pool_member.py +++ b/lib/ansible/modules/network/f5/bigip_gtm_pool_member.py @@ -690,7 +690,7 @@ class ModuleManager(object): return result def _transform_api_names(self, item): - if 'subPath' in item and ['subPath'] is None: + if 'subPath' in item and item['subPath'] is None: return item['name'] result = transform_name(item['fullPath']) return result