Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/plugins/modules/sonic.py

raw symbols SCIP
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3 # Copyright 2025 Dell Inc. or its subsidiaries. All Rights Reserved.
4 # GNU General Public License v3.0+
5 # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7 from __future__ import (absolute_import, division, print_function)
8 __metaclass__ = type
9
10 DOCUMENTATION = """
11 ---
12 module: sonic
13 author: S. Talabi (@stalabi1)
14 short_description: A dummy module for the sonic action plugin
15 version_added: "4.0.0"
16 description:
17 - "This is the corresponding module for the `sonic` action plugin."
18 - "It is provided to comply with the Ansible requirement that a module "
19 - "must exist for every plugin and is not executed directly."
20 options:
21 config:
22 description:
23 - Dummy configuration
24 type: str
25 required: true
26 """
27
28 EXAMPLES = """
29 """
30
31
32 from ansible.module_utils.basic import AnsibleModule
33
34
35 def main():
36 """Defines the module's parameters."""
37 module = AnsibleModule(argument_spec=dict(config=dict(type='str', required=True)),
38 supports_check_mode=True)
39 # The action plugin will handle the execution.
40 # Execution of this module is not expected when plugins are operating correctly.
41 module.exit_json(changed=False, msg="Unexpected invocation of the sonic.py module. Instead of this module, the referring plugin should have been executed.")
42
43
44 if __name__ == '__main__':
45 main()