fix py3 scope for unique filter errors, enable filters integration tests on rhel8 beta (#48961)
* fix py3 scope for unique filter errors, enable filters integration tests on rhel8 beta Signed-off-by: Adam Miller <admiller@redhat.com> * add changelog Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
0420d606de
commit
6f90d62be3
3 changed files with 5 additions and 3 deletions
3
changelogs/fragments/mathstuff-filter-py3-scope.yaml
Normal file
3
changelogs/fragments/mathstuff-filter-py3-scope.yaml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- "mattstuff filter - fix py3 scope for unique filter errors"
|
|
@ -62,12 +62,12 @@ def unique(environment, a, case_sensitive=False, attribute=None):
|
||||||
else:
|
else:
|
||||||
c = list(c)
|
c = list(c)
|
||||||
except TypeError as e:
|
except TypeError as e:
|
||||||
|
error = e
|
||||||
_do_fail(e)
|
_do_fail(e)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
error = e
|
||||||
_do_fail(e)
|
_do_fail(e)
|
||||||
display.warning('Falling back to Ansible unique filter as Jinja2 one failed: %s' % to_text(e))
|
display.warning('Falling back to Ansible unique filter as Jinja2 one failed: %s' % to_text(e))
|
||||||
finally:
|
|
||||||
error = e
|
|
||||||
|
|
||||||
if not HAS_UNIQUE or error:
|
if not HAS_UNIQUE or error:
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
shippable/posix/group2
|
shippable/posix/group2
|
||||||
skip/rhel8.0
|
|
||||||
|
|
Loading…
Reference in a new issue