diff --git a/awx/main/utils/filters.py b/awx/main/utils/filters.py index 80f197390b..8cda6f5c28 100644 --- a/awx/main/utils/filters.py +++ b/awx/main/utils/filters.py @@ -185,12 +185,13 @@ class SmartFilter(object): # appending __exact is basically a no-op, because that's # what the query means if you leave it off k = k[:-len(match)] - logger.error( - 'host_filter:{} does not support searching with {}'.format( - SmartFilter.SEARCHABLE_RELATIONSHIP, - match + else: + logger.error( + 'host_filter:{} does not support searching with {}'.format( + SmartFilter.SEARCHABLE_RELATIONSHIP, + match + ) ) - ) # Strip off leading relationship key if k.startswith(SmartFilter.SEARCHABLE_RELATIONSHIP + '__'):