Debian Codegraph @

test/integration/targets/warning-context/library/warning-deprecation.py

raw
1 from __future__ import annotations
2
3 from ansible.module_utils.basic import AnsibleModule
4
5
6 def main():
7 module = AnsibleModule(
8 argument_spec=dict(),
9 )
10
11 module.warn("This is a warning from a module")
12 module.deprecate("This is a deprecation from a module", version="9.9")
13
14 module.exit_json()
15
16
17 if __name__ == '__main__':
18 main()