mirror of https://github.com/ansible/ansible.git
Address fixme and handle filter/test errors for collections better (#68047)
* Address fixme and handle fitler/test errors for collections better. Fixes #66721 * Re-arrange codepull/68236/head
parent
6369591b11
commit
ee6413af47
@ -0,0 +1,4 @@
|
||||
bugfixes:
|
||||
- collections - Handle errors better for filters and tests in collections,
|
||||
where a non-existent collection is specified, or importing the plugin
|
||||
results in an exception (https://github.com/ansible/ansible/issues/66721)
|
@ -0,0 +1,13 @@
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
|
||||
class FilterModule(object):
|
||||
|
||||
def filters(self):
|
||||
return {
|
||||
'broken': lambda x: 'broken',
|
||||
}
|
||||
|
||||
|
||||
raise Exception('This is a broken filter plugin')
|
Loading…
Reference in New Issue