mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
fix a subtle bug in ansible_facts lookup filtering
This commit is contained in:
parent
e8eda28ce5
commit
a6b362e455
@ -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 + '__'):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user