mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -03:30
Merge pull request #3175 from ryanpetrello/exact_ansible_facts
fix a subtle bug in ansible_facts lookup filtering Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -185,12 +185,13 @@ class SmartFilter(object):
|
|||||||
# appending __exact is basically a no-op, because that's
|
# appending __exact is basically a no-op, because that's
|
||||||
# what the query means if you leave it off
|
# what the query means if you leave it off
|
||||||
k = k[:-len(match)]
|
k = k[:-len(match)]
|
||||||
logger.error(
|
else:
|
||||||
'host_filter:{} does not support searching with {}'.format(
|
logger.error(
|
||||||
SmartFilter.SEARCHABLE_RELATIONSHIP,
|
'host_filter:{} does not support searching with {}'.format(
|
||||||
match
|
SmartFilter.SEARCHABLE_RELATIONSHIP,
|
||||||
|
match
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
# Strip off leading relationship key
|
# Strip off leading relationship key
|
||||||
if k.startswith(SmartFilter.SEARCHABLE_RELATIONSHIP + '__'):
|
if k.startswith(SmartFilter.SEARCHABLE_RELATIONSHIP + '__'):
|
||||||
|
|||||||
Reference in New Issue
Block a user