2017-01-27 20:53:02 +01:00
|
|
|
#!/usr/bin/python
|
2020-06-23 04:05:30 +02:00
|
|
|
from __future__ import absolute_import, division, print_function
|
|
|
|
__metaclass__ = type
|
2017-01-27 20:53:02 +01:00
|
|
|
|
|
|
|
results = {}
|
|
|
|
# Test that we are rooted correctly
|
|
|
|
# Following files:
|
|
|
|
# module_utils/yak/zebra/foo.py
|
|
|
|
try:
|
|
|
|
from ansible.module_utils.zebra import foo
|
|
|
|
results['zebra'] = foo.data
|
|
|
|
except ImportError:
|
|
|
|
results['zebra'] = 'Failed in module as expected but incorrectly did not fail in AnsiballZ construction'
|
|
|
|
|
|
|
|
from ansible.module_utils.basic import AnsibleModule
|
|
|
|
AnsibleModule(argument_spec=dict()).exit_json(**results)
|