You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/module_utils/library/test_alias_deprecation.py

17 lines
429 B
Python

#!/usr/bin/python
from __future__ import absolute_import, division, print_function
__metaclass__ = type
from ansible.module_utils.basic import AnsibleModule
# overridden
from ansible.module_utils.ansible_release import data
results = {"data": data}
arg_spec = dict(
foo=dict(type='str', aliases=['baz'], deprecated_aliases=[dict(name='baz', version='9.99')])
)
AnsibleModule(argument_spec=arg_spec).exit_json(**results)